<?php /*
///-build_id: 2014052706.0227
/// This source file is subject to the Software License Agreement that is bundled with this 
/// package in the file license.txt, or you can get it here
/// http://addons-modules.com/store/en/content/3-terms-and-conditions-of-use
///
/// @copyright  2009-2012 Addons-Modules.com
///
*/
${"\x47L\x4fBA\x4cS"}["y\x6dx\x65\x6b\x6a\x66\x74\x79\x72"]="\x65\x6ecryp\x74\x65\x64";${"\x47\x4c\x4f\x42\x41LS"}["\x74\x74p\x6emq\x7af"]="dir";${"GL\x4f\x42\x41\x4c\x53"}["f\x6a\x69qmx\x6b"]="\x64\x61\x74\x61";${"\x47\x4cO\x42\x41LS"}["\x6ef\x79pn\x74\x72"]="\x6d\x6fd\x75\x6c\x65";${"\x47LO\x42\x41\x4cS"}["\x6c\x6d\x78\x63b\x7a\x7a"]="s\x70e\x63\x69\x61\x6c\x63\x61\x74e\x67\x6f\x72yi\x64s";${"G\x4cO\x42\x41L\x53"}["\x70\x70\x78\x72\x6e\x7a\x65e\x67\x71\x72"]="\x70\x72\x65\x66\x69\x78";${"\x47LO\x42\x41L\x53"}["\x6e\x71\x65\x72\x6d\x6f\x6b\x71f"]="\x6eo\x5f\x73p\x65\x63ia\x6c_p\x72odu\x63t\x73";${"\x47\x4cOBA\x4cS"}["\x76\x75o\x79\x70\x62r"]="i\x64\x5f\x73\x68\x6f\x70_ow\x6e\x65\x72";${"\x47\x4c\x4fB\x41\x4c\x53"}["d\x66z\x61\x72\x78\x71b"]="\x77\x68\x65\x72\x65\x73";${"\x47\x4c\x4fBA\x4c\x53"}["\x78\x6e\x67\x65\x75\x62\x62e"]="j\x6fin\x73";${"G\x4cO\x42\x41\x4cS"}["\x75sk\x63\x6f\x72\x63\x72tk\x76\x74"]="se\x6c\x65c\x74s";${"\x47\x4cO\x42\x41L\x53"}["x\x69\x7a\x75\x68\x70"]="\x78\x72_o\x62j\x69d";${"\x47\x4cOB\x41\x4cS"}["adta\x6eta\x6a\x75"]="p\x72\x6fd\x75\x63\x74";${"\x47\x4c\x4f\x42AL\x53"}["\x67\x6a\x76\x68\x77r\x67\x77\x6e"]="\x63\x61\x72t";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6c\x6dj\x67\x79d\x65\x62\x7ai\x65"]="\x70ag\x65n\x61\x6de";${"\x47LO\x42\x41\x4c\x53"}["kk\x68\x6et\x73"]="\x6e\x75\x6d";${"\x47\x4cOBAL\x53"}["\x70p\x6a\x72om\x61\x6d\x76\x71\x6f"]="\x6d\x65mb\x65rsh\x69pt\x79\x70e";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6d\x65\x65\x79\x79f\x76\x61\x65"]="m\x65mb\x65r\x73\x68\x69\x70";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x7af\x75ub\x7a\x65\x62\x64\x6c\x79"]="sel\x6cer\x69\x6ef\x6f";${"\x47\x4cO\x42\x41L\x53"}["uv\x7ad\x6c\x73\x6f\x78\x62l"]="o\x72d\x65\x72_t\x6f\x74\x61l\x5f\x77\x74";${"\x47L\x4fB\x41\x4c\x53"}["\x7a\x73\x72hlgs\x63\x78\x78f"]="s\x68\x69\x70p\x69\x6e\x67_t\x6f\x74\x61\x6c\x5f\x6e\x74";${"\x47LOBALS"}["\x70\x73\x79\x79e\x73\x69k\x71\x69"]="sh\x69ppi\x6e\x67\x5f\x74o\x74\x61l\x5fw\x74";${"GL\x4f\x42\x41\x4c\x53"}["\x71v\x6cj\x76\x71\x6al"]="\x6fr\x64e\x72\x5ft\x6f\x74\x61\x6c\x5fn\x74";${"\x47\x4c\x4f\x42\x41L\x53"}["\x6f\x73\x70ln\x66\x73\x65rl\x71"]="c\x61\x72\x72i\x65r\x5f\x77\x65\x69\x67\x68\x74";${"\x47L\x4f\x42A\x4c\x53"}["h\x78\x66k\x77\x6ep\x75\x64\x61o"]="\x63\x61\x72r\x69\x65\x72_\x63\x6f\x73t_\x6et";${"\x47\x4c\x4f\x42\x41LS"}["\x66m\x71\x68\x76x\x6c\x6c\x78\x67j\x74"]="\x63\x61r\x72i\x65r\x5f\x63\x6f\x73\x74_wt";${"\x47\x4cOB\x41\x4cS"}["\x72r\x6cn\x65p\x6b"]="i\x64\x5f\x63\x61r\x72\x69e\x72";${"G\x4cO\x42\x41\x4cS"}["e\x67\x6b\x72\x71\x6f\x6c\x6e\x62"]="\x63\x61r\x72\x69\x65\x72";${"\x47LO\x42A\x4c\x53"}["\x79\x73\x69f\x70\x68e\x78\x6b\x74\x71"]="\x63\x61\x72\x72i\x65\x72_\x61\x6do\x75\x6e\x74";${"\x47\x4c\x4fBA\x4cS"}["\x64\x66qh\x64\x72\x70h"]="\x70\x72odu\x63\x74s";${"\x47\x4c\x4fB\x41\x4c\x53"}["k\x63\x6czcm\x79\x6c"]="car\x72\x69\x65r\x5f\x70r\x6f\x64uc\x74\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70ixaf\x78\x63"]="\x70rod\x75c\x74\x5fi\x6ed\x65\x78";${"GLO\x42\x41\x4c\x53"}["\x74r\x6bm\x66\x6cnnu\x6a\x79"]="i\x64\x5f\x7a\x6f\x6e\x65";${"\x47L\x4f\x42\x41\x4cS"}["r\x74\x77\x62\x71\x67y\x6em"]="th\x65\x43\x61rt";${"\x47L\x4f\x42\x41\x4cS"}["\x70\x66g\x70\x6a\x6e\x65\x79\x74\x79u"]="\x6f\x72d\x65\x72";${"\x47\x4cO\x42\x41\x4c\x53"}["\x72\x76\x71n\x65\x74\x75"]="\x72ec";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6dd\x66\x6bcx"]="\x72\x65\x63\x73";${"G\x4c\x4fB\x41\x4c\x53"}["n\x62f\x65\x76\x6e\x78\x78dx"]="\x6ci\x73\x74";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["l\x71\x71\x77\x69\x62\x68\x6ezh"]="\x75\x70\x64a\x74\x65\x73";${"\x47\x4c\x4fB\x41L\x53"}["\x71mxom\x6a\x61\x78\x73x\x68"]="\x69d\x78";${"\x47LOBALS"}["\x74\x70yl\x75j\x79\x6c\x66"]="\x69\x6e\x73\x65r\x74\x73";${"\x47L\x4f\x42\x41\x4c\x53"}["l\x69\x6aq\x78\x6f\x71\x77f\x77\x6d"]="\x72\x6f\x77\x73";${"\x47L\x4f\x42\x41LS"}["\x66\x63r\x62\x74e\x6a\x71\x6c\x77"]="\x69\x64_ow\x6eer";${"\x47L\x4f\x42\x41L\x53"}["\x79\x61pgyy\x66fv"]="i\x64\x5f\x63at\x65\x67\x6fr\x79";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x65loth\x65\x6b"]="\x72\x65\x74";${"GLO\x42\x41L\x53"}["\x74\x6b\x78\x74\x72\x6a"]="\x72e\x73ult";${"\x47\x4c\x4f\x42A\x4c\x53"}["ot\x6bet\x66\x61z\x63on\x70"]="\x72e\x732";${"\x47\x4c\x4fBA\x4cS"}["jf\x74\x6b\x6d\x66\x78l"]="\x76\x61l";${"\x47\x4cO\x42A\x4c\x53"}["\x6d\x78\x65\x74\x6cr\x62q"]="\x6b\x65y";${"\x47\x4c\x4f\x42AL\x53"}["\x73\x6b\x72\x6e\x71\x6a\x78\x71\x66\x77"]="\x73or\x74";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x64\x75\x64\x71\x74s"]="f\x72\x6fm";${"\x47LO\x42A\x4cS"}["s\x64\x76\x6ay\x64n\x62\x6bn"]="c\x6fnt\x65xt";${"\x47\x4c\x4fB\x41\x4cS"}["\x6b\x7a\x73\x75\x6f\x61\x77"]="i";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x72\x78\x6df\x77\x65\x75"]="\x6c\x69m\x69t";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x74jb\x62\x6e\x67\x78"]="s\x65l\x65c\x74";${"GL\x4f\x42\x41LS"}["x\x75lng\x78y\x63ei\x75\x67"]="o\x72de\x72w\x61\x79";${"\x47\x4c\x4fBA\x4c\x53"}["\x66\x6d\x65\x6bjiy"]="\x6f\x72\x64\x65r\x62\x79";${"\x47\x4c\x4f\x42ALS"}["og\x61w\x7ai\x64\x78\x6er"]="\x6e";${"\x47L\x4fBA\x4c\x53"}["\x74\x73\x73\x79\x65w"]="\x70";${"\x47LOB\x41LS"}["n\x6c\x63\x69o\x65\x78"]="\x6eb_\x6fnly";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x69\x73d\x70\x71\x66\x66fjd\x6f\x73"]="\x73\x71\x6c\x34c\x69d\x73";${"\x47L\x4fBALS"}["vd\x64\x77\x71\x68\x69\x76\x75\x79\x79"]="sq\x6c\x34p\x69\x64s";${"\x47\x4c\x4f\x42\x41LS"}["\x64\x62h\x6a\x69\x6a\x66\x69u\x65\x79e"]="a\x63t\x69on\x5fr\x65\x71\x75\x69r\x65\x64";${"G\x4c\x4f\x42\x41\x4cS"}["\x6di\x6ej\x6co\x75yl"]="\x73\x74\x61t\x75\x73";${"\x47\x4c\x4f\x42AL\x53"}["m\x6f\x6cqnpy"]="c\x6f\x75\x6e\x74ry";${"\x47L\x4fB\x41L\x53"}["\x66\x69cr\x61p\x71\x66k\x76"]="sta\x74\x65";${"\x47L\x4f\x42AL\x53"}["\x62t\x77\x66\x6e\x67rl\x74\x6d"]="\x69\x64\x5fs\x65lle\x72\x69\x6e\x66o";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76g\x6f\x67\x6b\x6f\x64w\x75\x66"]="c\x6f\x6e\x66";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["v\x65x\x6a\x6a\x6f\x72"]="\x69\x64_\x6ca\x6e\x67";${"G\x4cOB\x41\x4c\x53"}["\x69\x73b\x74v\x70y\x6a\x6f"]="\x73h\x69p\x70\x69\x6e\x67\x5f\x69\x6ef\x6f";${"\x47LO\x42ALS"}["\x6cng\x73\x65f\x64\x67cyv"]="\x69\x64\x5f\x6frd\x65\x72";${"\x47\x4cOBA\x4c\x53"}["om\x73e\x75\x6d\x6cqh\x72\x6du"]="id_ca\x72t";${"\x47L\x4f\x42\x41\x4c\x53"}["f\x73ok\x6e\x79\x64\x78"]="\x74\x65m\x70l\x61teV\x61\x72\x73";${"\x47L\x4f\x42\x41\x4c\x53"}["\x69py\x6e\x77\x67\x6b\x76"]="o\x62\x6ai\x64";${"\x47\x4cOB\x41\x4c\x53"}["\x63\x78\x67\x76e\x62"]="\x71\x75\x65\x72\x79";${"\x47\x4cO\x42\x41\x4cS"}["\x73vi\x6f\x76kr"]="r\x6f\x77";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6d\x67cks\x66\x69\x6f\x79q"]="\x65\x6e\x74\x69t\x79_\x6d\x75l\x74\x69\x6fw\x6eer";${"G\x4c\x4f\x42A\x4cS"}["t\x64\x6f\x6b\x6cu\x75"]="i\x64\x5ffi\x65l\x64\x5f\x6e\x61\x6d\x65";${"\x47\x4c\x4f\x42\x41LS"}["eb\x6cllb\x78b\x64\x65\x6a\x72"]="\x6fwn\x65\x72\x49\x6e\x66o";${"\x47\x4cOB\x41\x4cS"}["u\x71\x70\x79\x62\x77\x70t\x6a\x6dk\x70"]="\x78\x72_\x74\x61\x62\x6c\x65";${"\x47L\x4f\x42\x41LS"}["\x68x\x71p\x63q\x62\x63\x6e\x66\x6e"]="\x69\x64_s\x65\x6c\x6c\x65\x72";${"G\x4c\x4fBALS"}["do\x66gq\x69"]="\x65\x61c\x65\x73\x73";${"G\x4c\x4f\x42\x41LS"}["\x66\x6c\x71\x6e\x69\x76\x71\x70\x6c\x75\x73"]="\x69\x64\x5fs\x68\x6f\x70";${"\x47LO\x42\x41L\x53"}["\x65\x72m\x78l\x62\x6aofjy\x61"]="\x72\x65\x73";${"\x47\x4c\x4f\x42\x41L\x53"}["\x72\x76om\x7a\x69"]="i\x64\x5f\x63\x75\x73\x74\x6f\x6d\x65\x72";${"\x47L\x4f\x42\x41\x4c\x53"}["\x64\x76\x63kv\x6d\x65\x73m\x65\x6d"]="o\x77\x6e\x65\x72\x69\x6ef\x6f";${"\x47L\x4f\x42A\x4c\x53"}["\x64\x68\x79g\x6e\x70\x68c\x64\x72"]="\x6c\x61\x62\x65\x6c\x34\x7a\x65\x72\x6f";${"\x47\x4cOB\x41\x4c\x53"}["\x6e\x6a\x68emc\x79q"]="\x61\x63\x74i\x76eon\x6c\x79";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x67f\x7asv"]="\x73\x71\x6c";${"G\x4cO\x42\x41L\x53"}["\x78\x6fo\x70\x63\x64g\x69g\x69"]="\x74a\x62l\x65";${"\x47LOBAL\x53"}["\x67\x63u\x6em\x72\x65\x63\x65"]="id";${"G\x4c\x4fB\x41\x4c\x53"}["p\x6bm\x66\x69\x6a\x74\x68b"]="\x65a\x63\x63\x65\x73\x73";${"\x47\x4cOB\x41L\x53"}["el\x6fba\x64\x64r\x71\x6c"]="\x65\x6e\x74\x69\x74y_ac\x63e\x73s\x65s";class AgileSellerManagerCore{const OWNER_TABLE_UNKNOWN=0;const OWNER_TABLE_DEFINED=1;const OWNER_TABLE_SHARED=2;private static$entity_multiowner=array('customer');private static$entity_accesses=array('agile_sellermessage'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'attachment'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'cart_rule'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'cms'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>1),'cms_category'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'feature'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'group'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>0),'product'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>1),'carrier'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>0),'category'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>0),'customer'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>1),'customer_thread'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'location'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'manufacturer'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'order'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>1),'order_carrier'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'order_message'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'supplier'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'specific_price'=>array('owner_table_type'=>2,'owner_xr_table'=>'product','is_exclusive'=>1),'specific_price_rule'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'tag'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'address'=>array('owner_table_type'=>1,'owner_xr_table'=>'customer','is_exclusive'=>1),'order_history'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'order_invoice'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'order_return'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'range_price'=>array('owner_table_type'=>1,'owner_xr_table'=>'carrier','is_exclusive'=>1),'range_weight'=>array('owner_table_type'=>1,'owner_xr_table'=>'carrier','is_exclusive'=>1),'stock_available'=>array('owner_table_type'=>1,'owner_xr_table'=>'product','is_exclusive'=>1),'feature_value'=>array('owner_table_type'=>2,'owner_xr_table'=>'feature','is_exclusive'=>1),'sellerinfo'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),);public static function get_entity_access($table){$pgziubus="ta\x62\x6c\x65";$ylvpksnbo="e\x6e\x74\x69t\x79_\x61\x63\x63\x65ss\x65\x73";${"G\x4cO\x42\x41LS"}["fihm\x73\x79\x70"]="\x74\x61\x62\x6c\x65";$kkjcxjwtwip="tab\x6ce";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75h\x76\x79\x61\x69k\x6b\x77\x6d\x64"]="t\x61\x62l\x65";if(${$kkjcxjwtwip}=="\x6fr\x64\x65r\x73")${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75h\x76\x79a\x69\x6b\x6b\x77m\x64"]}="or\x64\x65\x72";if(isset(self::${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x6cobad\x64r\x71l"]}[${$pgziubus}]))return self::${$ylvpksnbo}[${${"\x47\x4c\x4f\x42A\x4c\x53"}["fi\x68m\x73yp"]}];return array("\x6f\x77n\x65\x72\x5fta\x62\x6c\x65\x5ft\x79pe"=>self::OWNER_TABLE_UNKNOWN,"ow\x6e\x65\x72\x5fx\x72\x5f\x74ab\x6c\x65"=>"","is\x5f\x65\x78\x63\x6c\x75siv\x65"=>1);}public static function assignObjectOwner($table,$id,$id_seller){$cwvuarxbkhb="\x65\x61\x63\x63\x65\x73\x73";${"G\x4cO\x42A\x4c\x53"}["t\x62\x64\x6d\x79r\x6f\x6b\x6a\x69"]="\x65a\x63c\x65\x73\x73";${"G\x4c\x4fB\x41\x4c\x53"}["fx\x6bp\x7a\x72d\x6dt\x69\x6a"]="\x74\x61\x62\x6c\x65";${$cwvuarxbkhb}=self::get_entity_access(${${"\x47\x4cO\x42A\x4cS"}["\x66\x78\x6b\x70z\x72\x64m\x74\x69\x6a"]});if(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x74\x62\x64\x6dy\x72\x6f\x6b\x6ai"]}["o\x77n\x65r\x5fta\x62\x6ce\x5f\x74\x79p\x65"]==AgileSellerManager::OWNER_TABLE_DEFINED){$krdcwsknb="\x74a\x62\x6ce";${"G\x4cO\x42\x41LS"}["a\x74\x6e\x6do\x6fn\x6at"]="i\x64\x5fs\x65ll\x65r";self::assignObjectOwnerDefined(${$krdcwsknb},${${"\x47L\x4f\x42\x41\x4c\x53"}["pk\x6df\x69j\x74\x68\x62"]}["owner\x5f\x78r_t\x61b\x6c\x65"],${${"G\x4c\x4fB\x41\x4c\x53"}["\x67\x63u\x6em\x72\x65\x63\x65"]},${${"\x47\x4c\x4f\x42A\x4cS"}["\x61\x74\x6e\x6do\x6f\x6e\x6a\x74"]});}else{${"\x47L\x4f\x42\x41\x4cS"}["\x7a\x62v\x78jj\x71\x74\x6fv\x66"]="id";$tfihoeuai="\x69\x64\x5f\x73el\x6c\x65\x72";self::assignObjectOwnerShared(${${"\x47\x4cO\x42\x41LS"}["xo\x6f\x70\x63dg\x69\x67\x69"]},${${"\x47L\x4fB\x41\x4c\x53"}["\x70\x6b\x6d\x66i\x6at\x68\x62"]}["ow\x6e\x65\x72\x5fx\x72_\x74ab\x6ce"],${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x7ab\x76x\x6aj\x71\x74\x6f\x76f"]},${$tfihoeuai});}}public static function deleteObjectOwner($table,$id){$ydsgjb="\x65\x61\x63c\x65\x73\x73";$lkroknv="\x74\x61\x62\x6c\x65";if(intval(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x67c\x75\x6e\x6d\x72\x65\x63\x65"]})<=0)return;${"\x47L\x4f\x42\x41LS"}["\x63p\x73\x68y\x6a\x6d\x67\x67\x6a\x77"]="\x65\x61\x63\x63\x65\x73s";${$ydsgjb}=self::get_entity_access(${$lkroknv});if(!empty(${${"\x47\x4c\x4fB\x41\x4cS"}["pkm\x66\x69\x6a\x74\x68b"]}["owne\x72_x\x72\x5ftab\x6ce"]))return;if(${${"\x47L\x4f\x42A\x4cS"}["c\x70\x73hy\x6am\x67gjw"]}["ow\x6ee\x72_t\x61ble\x5ft\x79\x70e"]==AgileSellerManager::OWNER_TABLE_DEFINED){$dygqjbuwjyt="\x74\x61b\x6c\x65";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65\x67\x66\x7a\x73v"]}="\x44\x45\x4cE\x54\x45\x20FR\x4fM\x20"._DB_PREFIX_.(${$dygqjbuwjyt}=="o\x72d\x65r\x73"?"\x6f\x72d\x65r":${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x6f\x6fp\x63\x64\x67\x69\x67\x69"]})."\x5f\x6fw\x6e\x65r WHERE\x20\x69\x64_".(${${"\x47L\x4f\x42A\x4c\x53"}["x\x6fo\x70\x63dg\x69\x67\x69"]}=="ord\x65\x72s"?"o\x72de\x72":${${"\x47\x4cOB\x41\x4c\x53"}["\x78o\x6f\x70\x63\x64\x67\x69g\x69"]})."=".${${"\x47LO\x42A\x4c\x53"}["g\x63\x75\x6e\x6d\x72\x65\x63\x65"]};}else{${"\x47\x4cO\x42\x41\x4c\x53"}["\x6c\x6a\x62\x72\x6b\x78\x72"]="s\x71\x6c";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["a\x73g\x6f\x66\x6cy\x6c\x6f\x77\x6ao"]="\x69\x64";${${"G\x4cO\x42\x41\x4cS"}["l\x6abrk\x78\x72"]}="\x44\x45LE\x54E\x20F\x52\x4f\x4d\x20"._DB_PREFIX_."\x6f\x62j\x65c\x74_own\x65\x72 \x57\x48\x45\x52E \x60e\x6eti\x74y\x60\x3d'".${${"\x47\x4c\x4fBA\x4cS"}["\x78\x6f\x6f\x70\x63\x64gi\x67\x69"]}."\x27 \x41\x4e\x44\x20\x69\x64\x5fobj\x65\x63t\x3d".${${"G\x4c\x4f\x42\x41L\x53"}["asgof\x6c\x79\x6co\x77jo"]};}Db::getInstance()->Execute(${${"\x47\x4c\x4fB\x41L\x53"}["\x65\x67\x66\x7as\x76"]});}public static function getSellersNV($activeonly=true,$label4zero=''){${"\x47\x4c\x4fB\x41L\x53"}["c\x75\x62y\x78\x75\x79\x69\x63k\x61"]="l\x61b\x65\x6c4\x7ae\x72\x6f";${"G\x4c\x4f\x42\x41\x4cS"}["t\x65\x77\x64y\x6f\x76\x6er"]="\x73\x71\x6c";global$cookie;${${"\x47L\x4fB\x41L\x53"}["\x65g\x66z\x73v"]}="\n\x20   \t\t\x53EL\x45CT e\x2e`i\x64\x5fe\x6d\x70loy\x65\x65\x60\x20AS\x20i\x64\x5fsel\x6ce\x72, \x43\x41SE \x57H\x45\x4e\x20IF\x4eULL(\x73l\x2e\x60\x63ompa\x6ey`,'\x27)=\x27\x27\x20\x54\x48EN C\x4f\x4e\x43A\x54(\x65.\x66ir\x73tn\x61\x6d\x65,\x27\x20', e\x2e\x6ca\x73t\x6eame)\x20\x45LSE \x73l\x2e\x60\x63\x6f\x6dp\x61ny\x60\x20\x45\x4e\x44 AS n\x61\x6de\n\t\x20\x20  \tF\x52\x4fM `"._DB_PREFIX_."em\x70loy\x65\x65` e\n\t  \x20\x20\t\tL\x45\x46\x54\x20\x4a\x4fIN\x20\x60"._DB_PREFIX_."se\x6cle\x72in\x66o`\x20s\x20O\x4e \x49\x46\x4e\x55LL(s.id_se\x6cl\x65\x72,0)\x3de\x2e\x69d\x5fem\x70l\x6fy\x65\x65\n\t\x20 \x20\x20\t\t\x4c\x45F\x54\x20J\x4fIN \x60"._DB_PREFIX_."s\x65llerin\x66o_l\x61\x6eg\x60 sl \x4f\x4e\x20(\x73\x2eid\x5f\x73\x65lle\x72\x69nf\x6f=\x73l\x2e\x69\x64_sel\x6cer\x69\x6e\x66\x6f\x20AND s\x6c\x2e\x69\x64_l\x61ng=".intval($cookie->id_lang).")\n\t\t\x20 \x20 W\x48\x45R\x45\x201\x3d1\x20A\x4e\x44\x20\x65.id_\x70rofile =\x20".(int)Configuration::get("AG\x49\x4c\x45\x5f\x4dS\x5fP\x52\x4fFI\x4cE_I\x44")."\x20\n\t\t\x20\x20 \x20".(${${"\x47\x4c\x4fB\x41L\x53"}["nj\x68\x65m\x63\x79\x71"]}?"AND e.\x61\x63tive\x20\x3d 1":"")."\n\t\t";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x6b\x6d\x72\x77\x72\x66\x64\x70\x6a\x79\x6d"]="\x73\x71\x6c";if(!empty(${${"\x47\x4cO\x42\x41LS"}["\x64\x68y\x67n\x70\x68c\x64r"]}))${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x65g\x66\x7as\x76"]}="S\x45L\x45\x43T 0\x20\x41\x53\x20id\x5fs\x65ller, \x27".${${"\x47\x4cOBA\x4c\x53"}["\x63\x75by\x78\x75\x79\x69c\x6b\x61"]}."'\x20\x41S \x6ea\x6d\x65\x20U\x4e\x49ON\x20".${${"\x47LO\x42\x41\x4c\x53"}["\x74e\x77\x64y\x6f\x76\x6er"]};return Db::getInstance()->ExecuteS(${${"\x47L\x4f\x42A\x4cS"}["\x69\x6b\x6d\x72\x77\x72f\x64\x70j\x79m"]});}public static function getObjectOwnerID($table,$objid){${"\x47\x4cOB\x41\x4cS"}["g\x70\x78\x78p\x6d\x77\x6e\x66\x74\x6f"]="\x74\x61b\x6ce";${"\x47\x4c\x4f\x42\x41L\x53"}["\x6a\x6c\x74djb\x6e\x76"]="ob\x6a\x69\x64";$vqryoivonnp="\x6fw\x6e\x65\x72\x69n\x66o";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x64\x76\x63\x6b\x76\x6d\x65\x73\x6de\x6d"]}=self::getObjectOwnerInfo(${${"\x47\x4cO\x42\x41\x4c\x53"}["gpxx\x70\x6dwn\x66\x74\x6f"]},${${"\x47\x4c\x4fB\x41\x4cS"}["\x6a\x6c\x74\x64j\x62\x6e\x76"]});${"G\x4c\x4fB\x41L\x53"}["\x78w\x70b\x66\x75\x79\x6c\x6b"]="\x6fw\x6e\x65\x72\x69n\x66\x6f";if(isset(${${"GLOBA\x4cS"}["\x78\x77\x70bf\x75yl\x6b"]}["id_\x6f\x77ne\x72"]))return intval(${$vqryoivonnp}["id_\x6f\x77\x6eer"]);return-1;}public static function getLinkedSellerID($id_customer){$tnmrnqncnje="s\x71l";$jidsectkk="\x72\x65s";$skmtxcxnj="\x72e\x73";$sllbfpun="sq\x6c";${$tnmrnqncnje}="\x53\x45LECT \x69\x64\x5fsel\x6c\x65r\x20\x46\x52\x4f\x4d\x20\x60"._DB_PREFIX_."\x73el\x6cer\x69n\x66o\x60\x20\x57H\x45RE \x69\x64_\x63\x75stome\x72=".intval(${${"GLO\x42\x41\x4c\x53"}["\x72\x76om\x7ai"]});${$skmtxcxnj}=Db::getInstance()->getRow(${$sllbfpun});if(isset(${${"\x47L\x4f\x42A\x4c\x53"}["\x65\x72\x6d\x78\x6c\x62\x6ao\x66\x6a\x79\x61"]}["\x69d\x5fs\x65\x6c\x6c\x65r"])AND intval(${${"GL\x4f\x42\x41\x4cS"}["e\x72\x6dx\x6c\x62\x6a\x6f\x66\x6a\x79\x61"]}["i\x64_s\x65\x6c\x6c\x65\x72"])>0)return intval(${$jidsectkk}["\x69d\x5fse\x6cl\x65\x72"]);return 0;}public static function getSellerIdByShopId($id_shop){$ibmthwbtzwn="sq\x6c";${"\x47L\x4fB\x41L\x53"}["f\x6ec\x61\x62\x71u\x79"]="r\x65\x73";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65g\x66z\x73\x76"]}="\x53E\x4cECT \x69d_\x73el\x6cer F\x52\x4f\x4d\x20\x60"._DB_PREFIX_."sell\x65\x72\x69n\x66o` \x57\x48\x45\x52\x45\x20\x69\x64\x5fshop=".intval(${${"\x47L\x4fB\x41\x4c\x53"}["f\x6c\x71\x6e\x69\x76\x71\x70\x6c\x75\x73"]});${"\x47L\x4f\x42\x41LS"}["\x6bs\x6b\x7a\x6f\x69c\x71y"]="\x72\x65s";${${"\x47\x4cOB\x41LS"}["\x65\x72\x6dx\x6cb\x6a\x6f\x66jya"]}=Db::getInstance()->getRow(${$ibmthwbtzwn});${"\x47LO\x42ALS"}["\x62\x64\x67\x70\x6c\x77\x70j\x71\x75\x72\x6a"]="\x72e\x73";if(isset(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x66\x6e\x63\x61\x62\x71\x75\x79"]}["id_s\x65ll\x65r"])AND intval(${${"\x47LOB\x41\x4c\x53"}["\x6b\x73kz\x6fi\x63q\x79"]}["\x69d_s\x65l\x6ce\x72"])>0)return intval(${${"\x47L\x4fBA\x4cS"}["\x62\x64\x67\x70lwp\x6a\x71\x75\x72j"]}["\x69\x64_\x73el\x6cer"]);return 0;}public static function getObjectOwnerInfo($table,$objid,$id_seller=null){${"\x47\x4cO\x42A\x4c\x53"}["b\x69\x68h\x6a\x74flp\x6b"]="t\x61\x62le";${"\x47\x4cO\x42\x41\x4cS"}["\x6f\x63s\x66\x7a\x69\x75h\x6ac\x63"]="e\x61c\x65s\x73";${"G\x4cO\x42AL\x53"}["\x69\x6b\x6echz\x61iuc\x6c"]="e\x61c\x65\x73s";${${"\x47\x4c\x4f\x42A\x4c\x53"}["o\x63\x73\x66\x7aiu\x68\x6a\x63c"]}=self::get_entity_access(${${"\x47\x4c\x4fB\x41L\x53"}["\x62\x69h\x68j\x74f\x6c\x70k"]});if(${${"G\x4cOB\x41\x4c\x53"}["d\x6ff\x67\x71\x69"]}["\x6f\x77n\x65r_\x74\x61b\x6ce_ty\x70\x65"]==self::OWNER_TABLE_SHARED){$ekrpbxc="\x74abl\x65";$kivqvjfudwk="\x6f\x62\x6a\x69\x64";$qxyhyua="i\x64\x5fs\x65l\x6c\x65\x72";return self::getObjectOwnerInfoShared(${$ekrpbxc},${$kivqvjfudwk},${${"\x47\x4cOBALS"}["\x64\x6f\x66\x67qi"]}["\x6fw\x6e\x65\x72_x\x72_t\x61ble"],${$qxyhyua});}elseif(${${"\x47\x4cOBA\x4c\x53"}["\x69\x6b\x6e\x63h\x7a\x61\x69\x75\x63\x6c"]}["o\x77ne\x72_\x74\x61\x62\x6c\x65_t\x79p\x65"]==AgileSellerManager::OWNER_TABLE_DEFINED){$mrhdbss="o\x62\x6a\x69\x64";return self::getObjectOwnerInfoDefined(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x6f\x6fp\x63\x64\x67\x69\x67\x69"]},${$mrhdbss},${${"\x47LOB\x41\x4cS"}["\x64\x6f\x66gq\x69"]}["\x6f\x77n\x65r\x5f\x78r_\x74\x61b\x6ce"],${${"\x47\x4c\x4f\x42\x41L\x53"}["\x68x\x71\x70\x63\x71\x62c\x6e\x66\x6e"]});}return;}private static function assignObjectOwnerDefined($table,$xr_table,$id,$id_seller){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x65\x67\x64\x68s\x68d\x74\x6c\x63"]="i\x64\x5f\x73ell\x65\x72";${"G\x4cO\x42\x41LS"}["\x6b\x71\x6eb\x70\x6b\x79"]="\x6f\x77ne\x72I\x6e\x66\x6f";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6bc\x62\x65\x78mo\x6a"]="\x69d";${"\x47\x4c\x4fB\x41\x4cS"}["\x64bsk\x70\x68c\x70\x65\x6et"]="\x69\x64\x5f\x66\x69\x65l\x64\x5f\x6e\x61\x6d\x65";global$cookie;$gugtkpsufi="\x74\x61\x62\x6c\x65";$kccojhbncno="\x74\x61b\x6c\x65";$uldcmgrkgb="\x69\x64";if(intval(${$uldcmgrkgb})<=0)return;if(${${"\x47LOB\x41\x4cS"}["xo\x6f\x70\x63\x64\x67i\x67\x69"]}=="\x6fr\x64e\x72\x73")${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78o\x6fp\x63\x64\x67i\x67i"]}="or\x64e\x72";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6b\x71\x6e\x62\x70\x6b\x79"]}=self::getObjectOwnerInfoDefined(${$kccojhbncno},${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6b\x63bex\x6do\x6a"]},${${"G\x4c\x4f\x42\x41\x4cS"}["\x75\x71\x70\x79\x62w\x70tj\x6d\x6b\x70"]},${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x66eg\x64\x68s\x68\x64t\x6c\x63"]});${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64bs\x6b\x70\x68\x63p\x65\x6e\x74"]}="i\x64_".${$gugtkpsufi};if(isset(${${"\x47\x4cO\x42A\x4c\x53"}["\x65\x62\x6c\x6cl\x62x\x62\x64e\x6a\x72"]}[${${"\x47\x4c\x4f\x42\x41L\x53"}["\x74\x64\x6fklu\x75"]}])AND intval(${${"G\x4cO\x42A\x4cS"}["\x65\x62\x6c\x6cl\x62xbd\x65\x6a\x72"]}[${${"\x47\x4cO\x42\x41\x4c\x53"}["\x74do\x6bl\x75\x75"]}])>0){$ndlaiwwgcy="\x69d\x5fse\x6cl\x65\x72";${"G\x4cO\x42\x41LS"}["\x66\x78\x67\x6dters"]="i\x64";${${"G\x4cO\x42\x41LS"}["\x65\x67\x66\x7as\x76"]}="U\x50\x44\x41TE\x20"._DB_PREFIX_.${${"\x47LOB\x41\x4c\x53"}["\x78\x6f\x6f\x70c\x64\x67i\x67i"]}."\x5fow\x6eer SE\x54 i\x64\x5f\x6fwn\x65r\x3d".${$ndlaiwwgcy}." WH\x45R\x45 ".${${"G\x4cO\x42\x41\x4c\x53"}["t\x64\x6fk\x6cu\x75"]}."=".intval(${${"G\x4c\x4fB\x41L\x53"}["\x66xg\x6dt\x65rs"]});}else{$cgbcmvcyb="\x74ab\x6ce";$cptpecwsgddc="s\x71l";${$cptpecwsgddc}="\x49NS\x45\x52\x54\x20\x49\x4eTO\x20"._DB_PREFIX_.${${"\x47LO\x42\x41L\x53"}["\x78\x6fo\x70\x63\x64gig\x69"]}."\x5f\x6f\x77n\x65\x72 (\x69d\x5f".${$cgbcmvcyb}.",id\x5fo\x77n\x65r,d\x61te_ad\x64)\x20\x56\x41L\x55\x45\x53(".intval(${${"\x47\x4cO\x42\x41L\x53"}["\x67cun\x6d\x72ec\x65"]}).",".intval(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x78\x71\x70\x63q\x62\x63\x6e\x66n"]}).",'".date("\x59-\x6d-\x64 \x48:i:s")."\x27)";}try{Db::getInstance()->Execute(${${"\x47\x4c\x4f\x42A\x4c\x53"}["egfz\x73v"]});}catch(Exception$e){die($e->getMessage());}}private static function assignObjectOwnerShared($table,$xr_table,$id,$id_seller){global$cookie;${"\x47\x4cO\x42\x41L\x53"}["\x67l\x72\x70\x66\x67"]="\x69\x64";$cjflbdjmnt="\x74\x61\x62\x6ce";if(intval(${${"GL\x4fB\x41\x4c\x53"}["\x67\x63\x75\x6e\x6d\x72\x65c\x65"]})<=0)return;${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65b\x6cl\x6c\x62\x78\x62dejr"]}=self::getObjectOwnerInfoShared(${$cjflbdjmnt},${${"\x47L\x4f\x42A\x4cS"}["\x67\x6c\x72pfg"]},${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75\x71\x70\x79\x62\x77p\x74\x6a\x6d\x6bp"]},${${"\x47\x4c\x4f\x42AL\x53"}["h\x78\x71p\x63qbc\x6e\x66\x6e"]});if(isset(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65\x62l\x6c\x6cbx\x62d\x65\x6a\x72"]}["\x69d_\x6f\x62\x6a\x65\x63\x74"])AND intval(${${"G\x4c\x4f\x42A\x4c\x53"}["\x65\x62\x6c\x6c\x6cb\x78bdejr"]}["\x69\x64\x5f\x6f\x62j\x65\x63\x74"])>0){$xjhjechgj="i\x64\x5fs\x65\x6cl\x65\x72";${"G\x4cOB\x41\x4cS"}["e\x76y\x6e\x79\x70d\x6f\x6b"]="t\x61bl\x65";${${"GL\x4fBA\x4c\x53"}["\x65\x67\x66zs\x76"]}="\x55P\x44A\x54\x45 "._DB_PREFIX_."\x6f\x62jec\x74_owne\x72\x20SET\x20\x69\x64_o\x77\x6e\x65r\x3d".${$xjhjechgj}."\x20WH\x45\x52E \x20`\x65\x6e\x74\x69\x74y`=\x27".${${"\x47\x4cOB\x41\x4c\x53"}["ev\x79ny\x70\x64o\x6b"]}."\x27 AN\x44 i\x64\x5fo\x62\x6a\x65\x63t\x3d".intval(${${"\x47L\x4fB\x41L\x53"}["\x67\x63\x75nm\x72e\x63\x65"]});}else{$gfhonqky="id";$dhrbanf="\x69d\x5f\x73\x65\x6c\x6c\x65\x72";${"G\x4cOB\x41\x4c\x53"}["m\x76\x6f\x6dq\x6a\x79p\x64\x73\x65"]="\x73q\x6c";${${"G\x4cOB\x41\x4c\x53"}["m\x76o\x6d\x71\x6a\x79\x70d\x73\x65"]}="I\x4eSER\x54\x20IN\x54O\x20"._DB_PREFIX_."\x6fbject_o\x77ner\x20(\x69d_\x6f\x62\x6a\x65\x63t,`ent\x69t\x79\x60 ,\x69d\x5f\x6fwner,dat\x65\x5f\x61dd, da\x74eti\x6d\x65\x31)\x20VA\x4c\x55\x45S(".intval(${$gfhonqky}).",'".${${"G\x4c\x4f\x42A\x4c\x53"}["\x78\x6fop\x63\x64\x67\x69\x67\x69"]}."\x27,".intval(${$dhrbanf}).",'".date("Y-\x6d-\x64 \x48:\x69:s")."\x27,\x27".date("\x59-\x6d-\x64\x20H:\x69:s")."\x27)";}try{Db::getInstance()->Execute(${${"\x47\x4cOB\x41\x4c\x53"}["e\x67\x66zsv"]});}catch(Exception$e){die($e->getMessage());}}private static function getObjectOwnerInfoDefined($table,$id,$xr_table,$id_seller=null){$kdlgrjf="\x69\x64";$levmnyrkcy="\x74\x61\x62\x6c\x65";if(intval(${$kdlgrjf})<=0)return;$wavmzprank="\x73ql";$vovcjq="\x74\x61\x62\x6c\x65";if(${$levmnyrkcy}=="o\x72\x64e\x72s")${$vovcjq}="\x6frd\x65r";if(empty(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["uqpy\x62\x77\x70\x74j\x6d\x6bp"]})){$njmihwt="t\x61b\x6c\x65";$hqtksqjge="\x74a\x62l\x65";$yhifhkdxrc="\x73\x71\x6c";${$yhifhkdxrc}="\x53ELECT\x20*\x20FRO\x4d "._DB_PREFIX_.(${${"\x47L\x4fB\x41\x4c\x53"}["xo\x6fp\x63\x64\x67\x69g\x69"]}=="\x6fr\x64\x65\x72\x73"?"\x6f\x72\x64\x65\x72":${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78\x6fo\x70\x63\x64gigi"]})."_o\x77n\x65\x72 \x57H\x45R\x45\x20\x69d\x5f".(${$hqtksqjge}=="\x6f\x72ders"?"\x6f\x72d\x65\x72":${$njmihwt})."\x3d".intval(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67\x63unmr\x65\x63\x65"]});}else{$dzzjjnfvgdn="\x74\x61b\x6ce";${"G\x4c\x4f\x42\x41\x4c\x53"}["lpj\x61\x73wwho"]="\x78\x72_t\x61bl\x65";$uftbwfcafud="\x78r\x5f\x74a\x62le";${"\x47\x4c\x4fB\x41\x4c\x53"}["m\x71\x70j\x64k"]="\x74a\x62\x6c\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63\x68\x71\x71\x63e\x6a\x77\x79\x6f"]="s\x71\x6c";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x63h\x71q\x63\x65\x6aw\x79\x6f"]}="\n\t\t\t\tS\x45L\x45\x43T \x61\x78\x6f\x2e*\x20\n\t\t\t\t\x46RO\x4d\x20"._DB_PREFIX_.${${"\x47\x4cOBAL\x53"}["\x6d\x71\x70\x6a\x64k"]}."\x20a\x20\n\t\t\t\t\tLE\x46T \x4a\x4fIN "._DB_PREFIX_.${${"\x47\x4cO\x42\x41L\x53"}["\x6c\x70ja\x73w\x77\x68\x6f"]}."\x5f\x6fw\x6eer axo \x4f\x4e\x20\x61.\x69\x64_".${${"G\x4c\x4f\x42\x41LS"}["u\x71\x70\x79\x62w\x70\x74\x6a\x6d\x6bp"]}."=ax\x6f\x2e\x69\x64_".${$uftbwfcafud}."\n\t\t\t\tW\x48E\x52E a.\x69d_".${$dzzjjnfvgdn}."=".intval(${${"\x47\x4c\x4fB\x41LS"}["gc\x75\x6em\x72e\x63\x65"]});}if(intval(${${"\x47LO\x42ALS"}["\x68\x78\x71p\x63\x71\x62\x63n\x66\x6e"]})>0 AND in_array(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78o\x6f\x70\x63d\x67i\x67i"]},self::${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6d\x67c\x6bsfio\x79q"]}))${$wavmzprank}.=" A\x4eD (id\x5f\x6fw\x6eer\x3d0 \x4fR\x20id\x5f\x4fw\x6e\x65\x72=".intval(${${"\x47L\x4f\x42\x41L\x53"}["\x68x\x71\x70\x63\x71b\x63nfn"]}).")\x20\x4f\x52\x44\x45\x52\x20B\x59\x20\x69\x64_\x6fwn\x65r\x20\x44\x45SC";try{${${"\x47\x4c\x4f\x42A\x4c\x53"}["s\x76\x69\x6fv\x6b\x72"]}=Db::getInstance()->getRow(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["eg\x66z\x73v"]});}catch(Exception$e){die($e->getMessage());}return${${"G\x4c\x4f\x42A\x4c\x53"}["s\x76i\x6f\x76\x6b\x72"]};}private static function getObjectOwnerInfoShared($table,$id,$xr_table,$id_seller=null){${"\x47\x4c\x4f\x42\x41L\x53"}["u\x76\x74\x70\x6ak\x78w\x6emu"]="\x69\x64";$gfmczydfh="r\x6f\x77";if(intval(${${"\x47\x4cO\x42A\x4c\x53"}["\x75\x76t\x70j\x6bxw\x6emu"]})<=0)return;${"G\x4cO\x42\x41\x4cS"}["\x6ey\x6b\x79\x68o\x64\x72s\x71\x73\x70"]="x\x72\x5f\x74ab\x6c\x65";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6cr\x66\x76eq"]="s\x71\x6c";if(empty(${${"\x47\x4cOB\x41\x4c\x53"}["\x6ey\x6b\x79hod\x72\x73\x71s\x70"]})){${"\x47\x4c\x4f\x42\x41L\x53"}["f\x79\x7af\x72\x78\x79\x63\x73\x63\x6d"]="\x69\x64";$pcmkvxzajyt="\x74\x61\x62\x6ce";${"G\x4c\x4f\x42AL\x53"}["\x73\x6fbbd\x6eoi"]="\x73\x71\x6c";${${"GL\x4fB\x41\x4cS"}["s\x6fb\x62\x64\x6e\x6fi"]}="SE\x4cE\x43\x54\x20* \x46\x52O\x4d "._DB_PREFIX_."\x6fbje\x63\x74_\x6f\x77\x6e\x65r\x20\x57H\x45RE\x20\x60ent\x69ty`\x3d'".${$pcmkvxzajyt}."\x27\x20\x41N\x44\x20id_\x6f\x62\x6a\x65\x63t\x3d".intval(${${"GL\x4f\x42\x41\x4c\x53"}["fyz\x66\x72xycsc\x6d"]});}else{$nlmeyqibn="\x74ab\x6c\x65";$ccrrvxg="ta\x62l\x65";${"\x47\x4cOB\x41\x4cS"}["\x71j\x6c\x64\x71\x67o"]="\x73\x71\x6c";$ffdwicbm="\x78r\x5f\x74\x61\x62\x6c\x65";${${"\x47\x4cO\x42A\x4cS"}["qj\x6cd\x71g\x6f"]}="\n\t\t\t\tSELE\x43T axo\x2e*\x20\n\t\t\t\t\x46R\x4fM\x20"._DB_PREFIX_.${$nlmeyqibn}."\x20\x61 \n\t\t\t\t\t\n\t\t\t\t\t\x4cEFT\x20JO\x49N\x20"._DB_PREFIX_."\x6fb\x6ae\x63\x74\x5fowne\x72\x20axo\x20ON\x20(\x61\x2e\x69d_".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x71\x70y\x62\x77\x70\x74\x6am\x6bp"]}."=ax\x6f.i\x64\x5fo\x62\x6aect AN\x44 \x61\x78o\x2e`\x65\x6eti\x74\x79`='".${$ffdwicbm}."')\n\t\t\t\tWH\x45\x52E\x20\x61.id\x5f".${$ccrrvxg}."=".intval(${${"GL\x4f\x42A\x4c\x53"}["\x67c\x75\x6emr\x65\x63e"]});}$ijinywp="i\x64\x5f\x73\x65l\x6cer";if(intval(${${"\x47\x4cOBA\x4c\x53"}["\x68\x78qp\x63\x71\x62\x63\x6efn"]})>0 AND in_array(${${"G\x4c\x4f\x42\x41L\x53"}["\x78\x6f\x6f\x70\x63d\x67\x69\x67\x69"]},self::${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6d\x67\x63\x6bs\x66\x69o\x79\x71"]}))${${"G\x4c\x4fB\x41\x4c\x53"}["lr\x66\x76\x65q"]}.=" \x41ND\x20(id\x5fow\x6eer=\x30\x20\x4fR \x69d_\x4f\x77\x6e\x65\x72\x3d".intval(${$ijinywp}).") O\x52D\x45R\x20\x42Y\x20id_ow\x6e\x65\x72 D\x45\x53C";${$gfmczydfh}=Db::getINstance()->getRow(${${"\x47\x4cO\x42\x41\x4cS"}["\x65gf\x7a\x73v"]});return${${"\x47L\x4f\x42\x41L\x53"}["s\x76\x69o\x76kr"]};}public static function hasOwnership($table,$objid){$zqdhsoqte="\x6fw\x6e\x65\x72\x69\x6ef\x6f";global$cookie;${${"\x47LO\x42\x41\x4c\x53"}["\x68\x78\x71pc\x71\x62\x63\x6e\x66\x6e"]}=$cookie->id_employee;$browrvbaqw="\x69d_\x73el\x6c\x65r";if($cookie->id_employee<=0){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75\x72r\x69\x76\x77\x77"]="\x71\x75\x65r\x79";${${"\x47LO\x42\x41\x4cS"}["\x63x\x67\x76\x65\x62"]}="\x53\x45\x4c\x45CT id_s\x65\x6c\x6c\x65r\x20\x46\x52O\x4d\x20"._DB_PREFIX_."\x73el\x6ce\x72\x69nfo WHE\x52\x45\x20\x69\x64_\x63\x75\x73\x74omer=".intval($cookie->id_customer);${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68x\x71\x70\x63\x71\x62c\x6ef\x6e"]}=intval(Db::getInstance()->getValue(${${"\x47\x4c\x4f\x42ALS"}["\x75\x72r\x69\x76\x77\x77"]}));}${"G\x4c\x4fB\x41\x4cS"}["y\x78im\x72\x67o\x69"]="\x69\x64_s\x65ll\x65\x72";${${"G\x4c\x4fB\x41L\x53"}["\x64\x76\x63\x6bv\x6d\x65sm\x65\x6d"]}=self::getObjectOwnerInfo(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x78\x6fo\x70\x63\x64\x67\x69g\x69"]},${${"\x47LO\x42\x41\x4c\x53"}["i\x70yn\x77\x67\x6b\x76"]},${${"\x47\x4c\x4f\x42A\x4c\x53"}["yxi\x6drg\x6f\x69"]});if(!isset(${$zqdhsoqte})OR!isset(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64vckv\x6d\x65\x73\x6de\x6d"]}["id_\x6f\x77\x6eer"]))return false;if(intval(${${"\x47L\x4f\x42\x41L\x53"}["\x64\x76\x63\x6b\x76m\x65\x73\x6de\x6d"]}["id_o\x77n\x65r"])!=${$browrvbaqw})return false;return true;}public static function appendMailTemplateVars($templateVars,$id_lang){${"GL\x4fB\x41\x4cS"}["\x73lr\x6bu\x6dj"]="id\x5f\x6c\x61n\x67";${"G\x4c\x4fBALS"}["\x6b\x70\x69\x71r\x62\x76r"]="id\x5f\x73\x65l\x6c\x65\x72\x69\x6efo";${"GLOB\x41L\x53"}["\x77\x73\x70u\x73\x65\x74o\x75\x64q"]="t\x65\x6d\x70l\x61\x74\x65\x56\x61\x72\x73";${"G\x4c\x4fB\x41L\x53"}["\x6c\x72s\x66\x6c\x6c\x67\x64\x6f"]="t\x65\x6dp\x6c\x61t\x65V\x61\x72\x73";$sxvhpuvtw="i\x64_o\x72\x64\x65\x72";$wmobqm="\x74\x65\x6d\x70late\x56\x61\x72s";include_once(_PS_ROOT_DIR_."/\x6dodul\x65\x73/\x61gilem\x75l\x74i\x70\x6c\x65sel\x6c\x65r/\x53\x65\x6c\x6c\x65rIn\x66\x6f\x2ep\x68p");if(!isset(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77\x73p\x75\x73\x65t\x6f\x75\x64q"]}["{orde\x72_\x6eame}"]))return${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x73oknyd\x78"]};${$sxvhpuvtw}=AgileSellerManager::get_order_id_from_maildata(${${"\x47\x4c\x4fB\x41L\x53"}["f\x73\x6fkn\x79\x64x"]});if(Module::isInstalled("agiles\x65\x6c\x6cer\x73h\x69p\x70ing")){${"\x47L\x4fB\x41\x4c\x53"}["rc\x67\x69gvme"]="\x6do\x64\x75\x6c\x65";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76n\x6au\x6c\x6da"]="te\x6d\x70l\x61t\x65\x56\x61\x72\x73";${"\x47LO\x42\x41\x4cS"}["\x68\x71pr\x6ey\x78\x65\x6bp"]="\x74\x68\x65\x43\x61\x72t";${"\x47LO\x42\x41LS"}["v\x6f\x76j\x76\x75\x68"]="\x69d\x5f\x63a\x72t";include_once(_PS_ROOT_DIR_."/\x6do\x64u\x6c\x65s/\x61gi\x6c\x65s\x65lle\x72\x73h\x69\x70\x70\x69\x6eg/\x61g\x69lesellers\x68i\x70p\x69\x6e\x67.\x70h\x70");$xhmyclpuetxd="\x74\x65\x6d\x70\x6c\x61\x74\x65V\x61\x72\x73";${${"\x47LO\x42A\x4c\x53"}["r\x63\x67\x69g\x76m\x65"]}=new AgileSellerShipping();${${"\x47L\x4f\x42\x41\x4cS"}["\x6f\x6d\x73\x65u\x6dlqhrm\x75"]}=Order::getCartIdStatic(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6c\x6e\x67\x73\x65f\x64\x67\x63y\x76"]});${${"\x47\x4c\x4f\x42\x41LS"}["\x68\x71pr\x6ey\x78e\x6b\x70"]}=new Cart(${${"\x47L\x4f\x42\x41\x4cS"}["\x6fm\x73\x65\x75\x6d\x6c\x71\x68rm\x75"]});${${"GLOB\x41\x4c\x53"}["i\x73\x62\x74\x76\x70\x79j\x6f"]}=$module->displayInfoByCart(${${"\x47L\x4fB\x41\x4c\x53"}["\x76\x6fvj\x76\x75h"]});${${"\x47\x4c\x4fB\x41\x4cS"}["\x76n\x6a\x75lm\x61"]}["{\x63ar\x72i\x65\x72}"]=${${"G\x4c\x4fB\x41\x4c\x53"}["\x69\x73bt\x76\x70y\x6a\x6f"]};${${"\x47\x4c\x4fB\x41\x4cS"}["f\x73o\x6b\x6e\x79\x64\x78"]}["{\x74o\x74al_s\x68\x69\x70p\x69\x6e\x67}"]=Tools::displayPrice($theCart->getOrderTotal(true,Cart::ONLY_SHIPPING));${$xhmyclpuetxd}["{\x74\x6f\x74\x61\x6c_\x70a\x69\x64}"]=Tools::displayPrice($theCart->getOrderTotal(true,Cart::BOTH));}${"\x47L\x4f\x42A\x4c\x53"}["\x64\x6e\x67\x70\x6fox"]="\x73e\x6c\x6ce\x72i\x6e\x66o";${${"GLO\x42\x41\x4c\x53"}["hx\x71\x70c\x71\x62\x63\x6e\x66n"]}=intval(self::getObjectOwnerID("\x6f\x72de\x72",${${"GL\x4f\x42\x41L\x53"}["\x6c\x6e\x67s\x65\x66\x64gcy\x76"]}));$dhlpzsfeo="id\x5fse\x6cl\x65\x72\x69n\x66\x6f";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x74\x6akfj\x77\x66\x61\x6c\x74"]="s\x65\x6cle\x72i\x6ef\x6f";${$dhlpzsfeo}=SellerInfo::getIdBSellerId(${${"\x47\x4cO\x42A\x4c\x53"}["\x68\x78\x71\x70\x63qb\x63n\x66\x6e"]});${"\x47\x4c\x4fB\x41\x4cS"}["\x68\x6agv\x6f\x66\x64kr\x64"]="\x74\x65\x6d\x70\x6c\x61\x74\x65\x56\x61\x72\x73";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x64\x6egp\x6f\x6fx"]}=new SellerInfo(${${"\x47\x4cO\x42\x41\x4c\x53"}["k\x70\x69q\x72\x62\x76\x72"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x6crk\x75m\x6a"]});if(!Validate::isLoadedObject(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6bt\x6a\x6b\x66\x6a\x77\x66a\x6ct"]}))return${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x6a\x67\x76\x6ff\x64k\x72d"]};${${"\x47\x4cOB\x41\x4c\x53"}["\x6c\x72\x73\x66\x6cl\x67do"]}["{s\x65ll\x65r\x5f\x6c\x6f\x67\x6f}"]=Tools::getShopDomainSsl(true).__PS_BASE_URI__."\x69mg/a\x73/".$sellerinfo->id."\x2e\x6a\x70\x67";${${"\x47\x4cOBAL\x53"}["\x66\x73\x6fknyd\x78"]}["{\x73e\x6c\x6cer_\x61\x64d\x72\x65\x73\x73}"]=$sellerinfo->fulladdress(${${"G\x4c\x4fB\x41\x4c\x53"}["\x76\x65xj\x6a\x6f\x72"]});${$wmobqm}["{\x73\x65lle\x72\x5f\x6e\x61\x6d\x65}"]=$sellerinfo->company;return${${"\x47\x4c\x4f\x42\x41L\x53"}["f\x73ok\x6e\x79\x64\x78"]};}public static function getConfFromSellerInfo($id_order){$jmiodfxt="\x69\x64\x5f\x73e\x6c\x6c\x65r\x69\x6e\x66\x6f";$bvvhbdy="\x69\x64\x5fo\x72\x64\x65r";$noieuq="\x69d\x5fs\x65\x6c\x6c\x65\x72";$xjqlrdqn="\x63\x6f\x6e\x66";global$cookie;$vtpjlbgayub="se\x6cle\x72\x69nfo";${$xjqlrdqn}=array();${$noieuq}=AgileSellerManager::getObjectOwnerID("\x6fr\x64\x65r",${$bvvhbdy});if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x78q\x70\x63\x71\x62\x63\x6e\x66\x6e"]}<=0)return${${"\x47\x4cOB\x41\x4c\x53"}["\x76\x67\x6f\x67\x6b\x6f\x64\x77u\x66"]};${$jmiodfxt}=self::getIdBSellerId(${${"GL\x4f\x42A\x4cS"}["\x68x\x71\x70cqb\x63n\x66\x6e"]});${$vtpjlbgayub}=new SellerInfo(${${"GLO\x42\x41L\x53"}["\x62\x74w\x66\x6e\x67rl\x74m"]},$cookie->id_lang);${"\x47L\x4f\x42\x41\x4cS"}["gb\x77jm\x72b\x7a\x72\x65\x71"]="c\x6f\x6ef";${"G\x4c\x4f\x42\x41\x4c\x53"}["lf\x67\x65\x63\x74\x63\x68tr\x67"]="s\x65\x6c\x6c\x65ri\x6ef\x6f";if(!Validate::isLoadedObject(${${"\x47\x4c\x4fB\x41L\x53"}["\x6cf\x67\x65\x63t\x63h\x74\x72\x67"]}))return${${"\x47\x4c\x4f\x42\x41\x4cS"}["vg\x6fg\x6b\x6fdwu\x66"]};${${"G\x4c\x4fB\x41LS"}["\x76g\x6f\x67k\x6fd\x77\x75\x66"]}["PS_\x53H\x4fP_N\x41M\x45\x5fU\x50PER"]=strtoupper($sellerinfo->company);${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67\x62\x77\x6amr\x62z\x72\x65\x71"]}["\x50\x53_\x53H\x4fP_\x41D\x44\x52\x31"]=$sellerinfo->address1;${${"G\x4cO\x42\x41L\x53"}["\x76\x67\x6fg\x6b\x6fd\x77\x75\x66"]}["\x50S\x5fS\x48O\x50_\x41D\x44R\x32"]=$sellerinfo->address2;${${"\x47\x4cOB\x41\x4c\x53"}["\x76g\x6fg\x6bo\x64\x77u\x66"]}["\x50S_S\x48OP_\x43I\x54\x59"]=$sellerinfo->city;${${"\x47\x4c\x4f\x42A\x4c\x53"}["vg\x6f\x67kod\x77\x75\x66"]}["PS\x5f\x53\x48OP_ST\x41\x54\x45"]="";if($sellerinfo->id_state){${${"GL\x4fB\x41\x4c\x53"}["\x66\x69\x63\x72\x61pq\x66\x6b\x76"]}=new State($sellerinfo->id_state);${${"\x47L\x4f\x42AL\x53"}["v\x67\x6fg\x6b\x6f\x64\x77\x75\x66"]}["\x50S\x5f\x53HO\x50_S\x54ATE"]=$state->name;}${${"G\x4c\x4f\x42A\x4cS"}["\x76\x67\x6f\x67ko\x64w\x75f"]}["PS\x5f\x53\x48\x4fP_C\x4fU\x4e\x54R\x59"]="";if($sellerinfo->id_country){${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6d\x6f\x6c\x71\x6epy"]}=new Country($sellerinfo->id_country,$cookie->id_lang);${${"\x47LO\x42A\x4c\x53"}["\x76\x67o\x67ko\x64w\x75\x66"]}["P\x53\x5f\x53\x48\x4f\x50_\x43OUN\x54R\x59"]=$country->name;}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x67o\x67\x6b\x6fd\x77\x75\x66"]}["P\x53_SH\x4fP_P\x48\x4fN\x45"]=$sellerinfo->phone;${${"\x47L\x4fBALS"}["\x76\x67ogk\x6f\x64\x77u\x66"]}["\x50S_\x53HOP\x5fCODE"]=$sellerinfo->postcode;return${${"\x47\x4c\x4f\x42ALS"}["v\x67\x6f\x67k\x6f\x64\x77\x75\x66"]};}public static function checkEmptySellerInfoRecords(){$wiytffgmc="\x73\x71l";${"G\x4c\x4f\x42A\x4cS"}["\x72hc\x66\x62g\x6c\x6c"]="s\x71\x6c";${$wiytffgmc}="\x49N\x53ERT\x20I\x4e\x54O "._DB_PREFIX_."sell\x65\x72info (\x69\x64_\x73e\x6c\x6ce\x72,\x69\x64\x5fco\x75ntry,i\x64_st\x61te,\x64\x61t\x65\x5fa\x64\x64,d\x61te\x5fup\x64) \n \x20\x20     \x20\x20  \x20\x20\x20 SE\x4cEC\x54 \x69d\x5fempl\x6f\x79ee\x20A\x53\x20i\x64_\x73\x65lle\x72,".Configuration::get("P\x53_C\x4f\x55\x4e\x54RY_\x44\x45\x46AUL\x54")." A\x53 i\x64\x5fc\x6fu\x6e\x74ry,0\x20AS\x20\x69d_sta\x74e, CUR\x44\x41\x54E() \x41\x53 \x64a\x74\x65_\x61d\x64, CU\x52\x44A\x54E()\x20\x41\x53\x20d\x61t\x65\x5fupd\n  \x20 \x20\x20   \x20 \x20\x20 \x20\x20\x46\x52\x4f\x4d\x20"._DB_PREFIX_."em\x70loy\x65\x65 \x65\n\x20    \x20 \x20  \x20    \x20    \x4cE\x46T\x20\x4aOI\x4e\x20"._DB_PREFIX_."s\x65l\x6c\x65rin\x66o s \x4f\x4e (\x65.id\x5f\x65mp\x6co\x79e\x65=s\x2e\x69d_s\x65ll\x65\x72)\n  \x20\x20\x20 \x20 \x20  \x20 \x20 \x20\x57\x48\x45RE \x49\x46\x4eU\x4cL(s.i\x64_\x73e\x6cle\x72,0)\x3d\x30 AND\x20i\x64\x5fp\x72o\x66i\x6c\x65=".intval(Configuration::get("A\x47IL\x45\x5fM\x53_P\x52\x4fFILE\x5fI\x44"))."\n\x20\x20 \x20 \x20\x20\x20 \x20 \x20 \x20\x20\x20OR\x44\x45\x52\x20B\x59 id_\x65m\x70lo\x79ee";Db::getInstance()->Execute(${${"\x47\x4c\x4f\x42\x41L\x53"}["r\x68c\x66b\x67l\x6c"]});}public static function getAcitveProductsListed($id_seller){${"G\x4c\x4f\x42A\x4c\x53"}["y\x78\x6a\x78\x65i\x75\x68\x69"]="\x73\x71\x6c";${"G\x4cO\x42\x41L\x53"}["ge\x79f\x63\x6cx\x66\x6a"]="\x69d\x5fselle\x72";if(!intval(${${"\x47\x4c\x4f\x42\x41L\x53"}["h\x78\x71p\x63\x71\x62\x63nfn"]}))return 0;${${"\x47LO\x42ALS"}["\x79\x78jx\x65i\x75\x68\x69"]}="\x53\x45\x4cE\x43T coun\x74(\x70\x2e\x69d\x5f\x70\x72o\x64u\x63t)\x20as\x20\x6e\x75m\n \x20     \x20\x20   \x46RO\x4d\x20"._DB_PREFIX_."\x70r\x6f\x64uc\x74 \x70 \n\x20\x20 \x20\x20 \x20\x20\x20   \x20  \x20\x4c\x45FT \x4aO\x49N "._DB_PREFIX_."p\x72\x6f\x64uct_ow\x6eer \x70\x6f \x4f\x4e\x20p\x2ei\x64\x5fpro\x64uc\x74=\x70\x6f.\x69\x64_prod\x75c\x74\x20\n \x20 \x20\x20       \x57H\x45\x52\x45\x20\x69\x64\x5fo\x77ne\x72=".${${"\x47LO\x42\x41\x4c\x53"}["g\x65\x79\x66c\x6c\x78\x66j"]}."\n \x20\x20\x20\x20\x20   \x20\x20\x20\x20\x20  A\x4e\x44 p\x2e\x61c\x74\x69\x76\x65=\x31\n \x20\x20\x20\x20 \x20 \x20\x20\x20 ";return intval(Db::getInstance()->getValue(${${"\x47\x4c\x4fB\x41L\x53"}["\x65\x67\x66z\x73\x76"]}));}public static function disableSellerProducts($id_seller){${"\x47\x4c\x4fB\x41LS"}["c\x6cf\x66xw\x63\x78\x6d"]="\x69\x64\x5f\x73e\x6c\x6cer";$wjfnduymn="\x73q\x6c4\x70ids";$grtlwfsw="\x61c\x74\x69\x6fn\x5f\x72\x65\x71\x75\x69\x72\x65d";global$currentIndex,$cookie;if(intval(${${"\x47L\x4fB\x41L\x53"}["\x68x\x71\x70\x63\x71\x62cn\x66\x6e"]})<=0)return;$twglcsfrjons="\x73\x71\x6c";$bncdipkbgf="\x73\x74\x61\x74u\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75\x75l\x78km\x78\x6e\x63\x73\x74"]="\x69\x64\x5fs\x65\x6c\x6c\x65r";${$grtlwfsw}=0;${"\x47L\x4f\x42\x41\x4c\x53"}["u\x78l\x66\x63\x6a\x6a"]="\x73\x71\x6c4\x70i\x64\x73";$qdutlhoku="\x73\x71\x6c";${${"G\x4cO\x42\x41\x4cS"}["\x65g\x66\x7as\x76"]}="S\x45\x4cE\x43\x54 \x61\x63\x74ive \x46\x52\x4f\x4d "._DB_PREFIX_."\x65m\x70\x6co\x79e\x65 \x57HERE i\x64_e\x6dpl\x6f\x79e\x65=".intval(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x68x\x71\x70\x63\x71\x62\x63n\x66n"]});${$bncdipkbgf}=Db::getInstance()->getValue(${${"G\x4c\x4fB\x41L\x53"}["\x65\x67f\x7a\x73v"]});$omcxynknudi="a\x63\x74i\x6f\x6e_re\x71\x75\x69re\x64";if(!isset(${${"\x47\x4cO\x42\x41L\x53"}["\x6di\x6e\x6a\x6couy\x6c"]}))${${"\x47L\x4f\x42\x41\x4c\x53"}["dbhj\x69\x6a\x66\x69u\x65\x79\x65"]}=1;else if(intval(${${"\x47L\x4fBA\x4cS"}["\x6d\x69nj\x6c\x6f\x75\x79l"]})==0)${$omcxynknudi}=1;if(${${"\x47\x4c\x4fBA\x4c\x53"}["\x64\x62\x68\x6a\x69\x6a\x66iu\x65\x79\x65"]}==0)return;${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76\x64\x64\x77\x71\x68\x69\x76u\x79\x79"]}="\x53ELECT i\x64_\x70r\x6f\x64\x75c\x74\x20\x46ROM \x60"._DB_PREFIX_."pr\x6f\x64u\x63t\x5f\x6f\x77n\x65\x72`\x20WH\x45RE id\x5f\x6f\x77\x6e\x65r=".${${"\x47\x4cO\x42\x41\x4cS"}["\x75u\x6c\x78\x6b\x6d\x78n\x63st"]};${${"\x47\x4cOB\x41\x4cS"}["e\x67\x66z\x73v"]}="U\x50\x44A\x54E\x20`"._DB_PREFIX_."prod\x75\x63\x74`\x20\x20SET\x20\x61ctive\x3d\x30 \x57\x48\x45\x52\x45\x20i\x64_prod\x75\x63t IN (".${$wjfnduymn}.")";Db::getInstance()->Execute(${$qdutlhoku});${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65g\x66\x7a\x73v"]}="UP\x44A\x54\x45\x20\x60"._DB_PREFIX_."pr\x6f\x64uct_shop`\x20\x20S\x45\x54 act\x69ve\x3d0 W\x48ER\x45 \x69\x64_pr\x6fd\x75\x63t\x20\x49N (".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x78\x6c\x66\x63j\x6a"]}.")";Db::getInstance()->Execute(${${"\x47L\x4fB\x41LS"}["\x65g\x66zs\x76"]});${${"\x47\x4c\x4fBA\x4c\x53"}["\x69\x73d\x70\x71f\x66\x66\x6ad\x6fs"]}="S\x45\x4cECT i\x64\x5f\x63at\x65\x67o\x72\x79\x20\x46RO\x4d\x20`"._DB_PREFIX_."\x63a\x74\x65g\x6f\x72\x79\x5f\x6f\x77ner`\x20W\x48E\x52E\x20id\x5f\x6f\x77ne\x72\x3d".${${"\x47\x4c\x4f\x42AL\x53"}["\x63l\x66\x66x\x77\x63\x78m"]};${${"G\x4cO\x42\x41\x4cS"}["eg\x66\x7a\x73\x76"]}="\x55PDAT\x45\x20`"._DB_PREFIX_."c\x61t\x65\x67or\x79\x60 \x20S\x45\x54\x20\x61\x63\x74\x69ve\x3d0\x20\x57\x48E\x52E\x20\x69\x64\x5f\x63\x61tegor\x79\x20\x49\x4e\x20(".${${"\x47\x4c\x4f\x42AL\x53"}["\x69sdpq\x66\x66f\x6a\x64\x6fs"]}.")";Db::getInstance()->Execute(${$twglcsfrjons});}public static function deleteSellerInfo($id_seller){global$currentIndex,$cookie;${"\x47\x4cO\x42\x41\x4c\x53"}["\x67\x70v\x6a\x61\x72"]="i\x64_s\x65\x6c\x6c\x65\x72";if(intval(${${"\x47\x4cOBA\x4cS"}["\x68x\x71\x70\x63q\x62\x63\x6ef\x6e"]})<=0)return;${"GL\x4f\x42A\x4cS"}["\x64\x62gic\x6df\x6b\x6c\x72o"]="\x73\x71\x6c";${${"\x47LOB\x41\x4c\x53"}["\x65\x67f\x7a\x73\x76"]}="\x44\x45\x4c\x45T\x45 \x46R\x4fM `"._DB_PREFIX_."\x73e\x6c\x6c\x65r\x69\x6e\x66o\x60 \x57\x48ERE \x69d\x5f\x73elle\x72 =".${${"\x47\x4c\x4fB\x41L\x53"}["\x67\x70\x76j\x61\x72"]};Db::getInstance()->Execute(${${"GL\x4f\x42A\x4cS"}["\x64bg\x69\x63m\x66\x6blr\x6f"]});}public static function getProducts($id_seller,Context$context,$nb_only=false,$p=1,$n=10,$orderby='',$orderway=''){${"\x47\x4cO\x42\x41\x4cS"}["a\x73ci\x64\x6f"]="f\x72om";${"\x47\x4cO\x42\x41\x4cS"}["\x69\x7a\x6b\x63v\x63\x67"]="\x72e\x73";${"\x47\x4c\x4fB\x41L\x53"}["\x6b\x78\x72\x65\x69\x6d\x76q\x67c\x64"]="fro\x6d";${"\x47\x4c\x4f\x42\x41L\x53"}["\x69\x70\x64\x76\x74f\x63\x6c"]="i";$vfnrfrgntbt="\x66\x72o\x6d";${"\x47\x4cOB\x41\x4c\x53"}["\x6a\x76u\x62\x71\x75\x73"]="\x6fr\x64\x65r\x77ay";$iwlxuhpc="\x72\x65s";${"\x47LO\x42\x41\x4cS"}["\x6c\x6b\x63\x70l\x76p\x79\x65\x73"]="sq\x6c";${"\x47L\x4f\x42\x41LS"}["nl\x6b\x78k\x78\x74\x6c\x77"]="\x70";$hdkyvtuvcuc="\x73\x65\x6c\x65\x63\x74";$fjynfwpxjic="w\x68e\x72\x65";$xtnraexj="\x6c\x69m\x69t";${"GL\x4f\x42\x41\x4c\x53"}["q\x75pa\x62\x78"]="s\x6fr\x74";${$hdkyvtuvcuc}="\n\t\t\x20\x20\x20 \x53EL\x45CT \x64i\x73t\x69n\x63\x74\x20\x70\x2e*,\x20\x70l\x2en\x61\x6d\x65,p\x6c\x2e\x6ci\x6e\x6b\x5f\x72\x65\x77\x72\x69te,\x20c\x6c\x2ena\x6d\x65\x20`\x6ea\x6de\x5f\x63a\x74\x65g\x6fry`, i\x2e`id\x5f\x69\x6d\x61\x67e\x60,\x200\x20\x41\x53 \x70\x72i\x63e_fi\x6eal, \x73\x61\x76\x2e`qua\x6e\x74i\x74\x79\x60 as\x20\x73\x61v\x5f\x71u\x61nt\x69ty\n\t\t \x20\x20\x20\x20\x20\x20\x20,\x70\x6f\x2ea\x70\x70\x72ov\x65\x64\n\t\x20\x20\x20  \x20  ";${$vfnrfrgntbt}="\n\t\t\t\t\x46\x52\x4f\x4d\x20`"._DB_PREFIX_."p\x72\x6fd\x75ct` p\n\t\t\t\tINNE\x52\x20J\x4fIN\x20"._DB_PREFIX_."\x70ro\x64\x75\x63t\x5fshop pr\x6f\x64\x75\x63\x74\x5fs\x68op\x20ON (\x70\x72o\x64uc\x74\x5fsho\x70\x2ei\x64_\x70\x72\x6fduct \x3d\x20p.\x69d\x5fp\x72\x6f\x64uct\x20\x41ND pro\x64\x75\x63t_s\x68\x6fp\x2e\x69\x64_s\x68o\x70 \x3d ".Configuration::get("PS_\x53HO\x50\x5f\x44EFAU\x4c\x54").")\n\t\t\t\tL\x45F\x54 JOI\x4e\x20`"._DB_PREFIX_."p\x72\x6f\x64u\x63t_\x6c\x61ng` p\x6c \x4fN (\x70\x6c\x2ei\x64\x5f\x6c\x61\x6eg\x3d".$context->language->id."\x20\x41ND p.`\x69d_\x70ro\x64u\x63\x74` \x3d\x20\x70\x6c\x2e\x60\x69\x64\x5fpr\x6fduc\x74` ".Shop::addSqlRestrictionOnLang("pl").")\n\t\t\t\t\x4c\x45FT\x20\x4aO\x49\x4e\x20\x60"._DB_PREFIX_."\x74ax\x5fr\x75l\x65` \x74\x72 ON (p\x72o\x64\x75ct\x5fs\x68op\x2e\x60\x69\x64\x5ftax\x5f\x72u\x6c\x65s\x5fg\x72\x6fup`\x20\x3d \x74r.`id\x5fta\x78_\x72u\x6c\x65s_\x67r\x6fup\x60\n\t\t \t\t\x20 \x41\x4eD\x20\x74r.\x60\x69\x64\x5f\x63o\x75n\x74ry\x60 = ".(int)$context->country->id."\n\t\t \t\t\x20 \x41\x4e\x44\x20tr\x2e\x60\x69d_\x73\x74a\x74\x65`\x20= \x30)\n\t \x20\t\t \tL\x45FT\x20JO\x49\x4e `"._DB_PREFIX_."ta\x78`\x20\x74\x20\x4f\x4e (t\x2e\x60\x69d_\x74\x61\x78\x60 = \x74\x72.`\x69d_\x74\x61\x78\x60)\n\t\t\t\t\x4c\x45FT J\x4f\x49\x4e \x60"._DB_PREFIX_."\x6da\x6e\x75facture\x72\x60 m \x4f\x4e (\x6d\x2e`\x69d\x5fm\x61\x6e\x75f\x61\x63t\x75re\x72\x60 = p.`i\x64_manufac\x74u\x72er`)\n\t\t\t\tLE\x46T \x4aOIN\x20`"._DB_PREFIX_."suppli\x65r\x60\x20s ON\x20(\x73.\x60id\x5fsu\x70\x70\x6ci\x65\x72\x60 = \x70\x2e`i\x64\x5f\x73\x75p\x70\x6c\x69\x65\x72`)\n\t\t\t\x4cEFT\x20\x4a\x4f\x49N\x20`"._DB_PREFIX_."i\x6d\x61g\x65\x60 \x69 ON (i.\x60id\x5fp\x72o\x64\x75\x63t`\x20= p.`\x69\x64\x5fpro\x64uct\x60 \x41ND i\x2e`\x63o\x76\x65r` \x3d\x201)\n\t\t\t\x4c\x45\x46\x54\x20JOI\x4e `"._DB_PREFIX_."st\x6f\x63k\x5f\x61va\x69\x6cable`\x20sa\x76\x20O\x4e (\x73\x61v\x2e`\x69\x64_\x70r\x6fd\x75ct\x60\x20= p\x2e\x60\x69\x64\x5f\x70r\x6fd\x75\x63\x74\x60\x20A\x4e\x44\x20sav\x2e`\x69d_produc\x74_\x61\x74t\x72\x69b\x75\x74e\x60 \x3d\x20\x30\n\t\t\t\t\x41N\x44\x20sav.`i\x64_\x73\x68op` \x3d\x20".(int)$context->shop->id.")\n\t\t\x20   \x4c\x45\x46\x54\x20\x4aO\x49\x4e\x20\x60"._DB_PREFIX_."c\x61\x74\x65\x67\x6f\x72\x79_lang` \x63l \x4f\x4e\x20(\x70.i\x64_\x63\x61\x74e\x67\x6f\x72y_de\x66aul\x74=\x63\x6c\x2eid\x5fc\x61te\x67o\x72\x79 \x41\x4eD c\x6c.id_\x6ca\x6eg=".$context->language->id.")\n\t\t\x20  \x20\x4c\x45FT \x4aOIN\x20`"._DB_PREFIX_."prod\x75ct_\x6f\x77ne\x72`\x20\x70\x6f O\x4e\x20\x70\x2e\x69\x64_\x70\x72o\x64uc\x74=\x70o.i\x64\x5f\x70\x72\x6f\x64uct\n\t\t";${"GL\x4f\x42\x41\x4c\x53"}["y\x76p\x69\x76\x6f\x73"]="w\x68\x65\x72e";$ilvuhxsfoi="o\x72derb\x79";${$fjynfwpxjic}=" \x57\x48\x45\x52E \x70o\x2e\x69\x64\x5fo\x77n\x65r>0\x20\x41N\x44\x20p\x6f.id\x5fow\x6e\x65\x72\x20\x3d\x20".intval(${${"GLO\x42\x41LS"}["\x68\x78\x71p\x63\x71\x62cn\x66n"]})." \n\t\t";if(${${"\x47\x4cO\x42A\x4cS"}["\x6e\x6c\x63\x69\x6f\x65\x78"]})return Db::getInstance()->getValue("SE\x4c\x45\x43\x54 C\x4fUNT(*)\x20".${${"G\x4c\x4f\x42A\x4c\x53"}["\x61\x73\x63i\x64\x6f"]}.${${"\x47\x4c\x4f\x42\x41L\x53"}["\x79\x76\x70\x69vos"]});$qnmlsvoya="\x73\x6fr\x74";${"\x47LOB\x41LS"}["o\x62ex\x70\x73\x62\x75\x68"]="\x72\x65s";${"GLOB\x41LS"}["jny\x74\x73\x68p\x6e"]="\x6e";if(${${"\x47\x4cO\x42AL\x53"}["t\x73\x73y\x65w"]}<1)${${"\x47L\x4f\x42A\x4c\x53"}["t\x73\x73ye\x77"]}=1;${"\x47L\x4f\x42\x41\x4c\x53"}["\x65\x68\x67w\x6f\x69\x6axf\x77"]="i";${"\x47L\x4f\x42AL\x53"}["\x7a\x75mh\x6a\x6b\x75t\x63q"]="wher\x65";$vzcdgno="\x63\x75\x72r\x65nc\x79";if(${${"\x47L\x4f\x42ALS"}["o\x67\x61\x77\x7ai\x64\x78\x6e\x72"]}<1)${${"\x47L\x4fB\x41\x4cS"}["\x6a\x6ey\x74shp\x6e"]}=10;if(empty(${${"\x47\x4cOB\x41\x4cS"}["\x66m\x65\x6b\x6a\x69y"]}))${$ilvuhxsfoi}="p.\x64ate_add";if(empty(${${"\x47LO\x42\x41\x4cS"}["\x78u\x6cn\x67\x78\x79\x63e\x69\x75\x67"]}))${${"\x47\x4cOB\x41LS"}["\x6a\x76\x75\x62qu\x73"]}="D\x45\x53\x43";${$qnmlsvoya}="O\x52D\x45R\x20B\x59 ".${${"\x47L\x4f\x42\x41L\x53"}["\x66m\x65\x6b\x6a\x69\x79"]}."\x20".${${"\x47\x4c\x4fBA\x4c\x53"}["\x78u\x6c\x6e\x67\x78y\x63\x65\x69\x75g"]}." \n\x20\x20\x20 \x20   ";${$xtnraexj}="\x4cI\x4dIT ".(((int)(${${"\x47\x4c\x4fB\x41LS"}["\x6e\x6c\x6b\x78kx\x74\x6cw"]})-1)*(int)(${${"\x47\x4cO\x42\x41LS"}["\x6f\x67\x61\x77\x7a\x69d\x78n\x72"]})).",".(int)(${${"GLOB\x41\x4c\x53"}["\x6fga\x77zidxnr"]})."\n\t\t";${${"\x47L\x4f\x42\x41LS"}["eg\x66\x7a\x73\x76"]}=${${"\x47\x4c\x4fBAL\x53"}["t\x6a\x62b\x6eg\x78"]}.${${"G\x4c\x4fBA\x4c\x53"}["kx\x72e\x69\x6d\x76\x71\x67\x63\x64"]}.${${"G\x4c\x4f\x42A\x4c\x53"}["\x7a\x75\x6d\x68j\x6b\x75\x74\x63\x71"]}.${${"\x47LOB\x41\x4c\x53"}["qu\x70\x61\x62x"]}.${${"G\x4cO\x42\x41LS"}["\x65\x72xm\x66we\x75"]};${${"\x47\x4c\x4fBAL\x53"}["e\x72\x6dxlb\x6aofjya"]}=Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6c\x6bc\x70lvp\x79\x65\x73"]});if(empty(${${"\x47\x4c\x4f\x42AL\x53"}["\x69zk\x63v\x63\x67"]}))return${${"\x47L\x4f\x42A\x4c\x53"}["e\x72m\x78\x6c\x62\x6ao\x66\x6a\x79a"]};${$vzcdgno}=new Currency((int)Configuration::get("PS_C\x55R\x52\x45NCY\x5fDE\x46A\x55\x4cT"));${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6fb\x65x\x70\x73\x62\x75\x68"]}=Product::getProductsProperties(Context::getContext()->cookie->id_lang,${$iwlxuhpc});for(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x69\x70d\x76\x74\x66\x63\x6c"]}=0;${${"\x47\x4c\x4fB\x41\x4cS"}["\x65\x68g\x77\x6fi\x6a\x78f\x77"]}<count(${${"\x47\x4cO\x42\x41\x4c\x53"}["e\x72m\x78\x6cb\x6a\x6f\x66\x6a\x79a"]});${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6bzs\x75\x6f\x61\x77"]}++){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x6f\x6c\x72\x6a\x6a\x69\x6d\x79\x76\x73\x63"]="\x72\x65\x73";${"G\x4c\x4fB\x41L\x53"}["f\x76wb\x76x\x65\x6e"]="r\x65\x73";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67\x6f\x6c\x72\x6a\x6a\x69\x6d\x79\x76\x73c"]}[${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6bz\x73\x75\x6f\x61w"]}]["pri\x63\x65\x5ffinal"]=Product::getPriceStatic(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x66\x76\x77\x62\x76x\x65\x6e"]}[${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6bzs\x75o\x61\x77"]}]["i\x64\x5fpro\x64u\x63t"],true,null,6,null,false,true,1,true)*$currency->conversion_rate/Context::getContext()->currency->conversion_rate;}return${${"G\x4c\x4f\x42\x41\x4cS"}["\x65rm\x78l\x62j\x6f\x66\x6a\x79\x61"]};}public static function getOrders($id_seller,$showHiddenStatus=false,Context$context=null,$nb_only=false,$p=1,$n=10,$orderby='',$orderway=''){${"\x47L\x4fB\x41\x4cS"}["\x65\x6f\x73fmq\x6emmr"]="\x6f\x72\x64\x65\x72\x62\x79";${"\x47\x4c\x4f\x42A\x4cS"}["jrm\x6c\x6b\x74xb\x69"]="re\x73";${"\x47L\x4fB\x41\x4c\x53"}["\x7a\x65\x67\x6d\x6b\x73\x67rd\x79"]="s\x65le\x63t";$hlsmpzeaos="\x72es";$xyiqclgnho="id\x5fsel\x6c\x65\x72";$tmfwttwxrrk="\x73ql";$uaifmrosr="\x77\x68ere";${"GL\x4f\x42\x41\x4c\x53"}["\x7a\x6a\x67\x62q\x65\x62ju"]="f\x72\x6fm";$fysfory="\x77h\x65r\x65";$zbmfrvq="\x6e";$slgbomyqru="sql";$lkoosgxquwx="w\x68e\x72\x65";$wrtfurtrxkj="\x6frd\x65\x72\x62y";if(!intval(${$xyiqclgnho}))return;$orhubtgrttj="\x70";if(!${${"\x47L\x4f\x42A\x4c\x53"}["\x73\x64\x76j\x79\x64n\x62k\x6e"]})${${"\x47\x4cO\x42\x41LS"}["s\x64\x76\x6ay\x64\x6e\x62\x6bn"]}=Context::getContext();$bajfobacwh="\x69\x64_sel\x6ce\x72";${${"GL\x4fBA\x4c\x53"}["\x7aeg\x6d\x6b\x73\x67r\x64y"]}="\n\t\tSE\x4c\x45C\x54 o.*\n\t\t \x20\x20 , \x43\x4fNCAT(\x4c\x45\x46T(c.`f\x69r\x73\x74\x6e\x61\x6d\x65`, 1), '.\x20\x27, \x63.`\x6cas\x74nam\x65`)\x20A\x53\x20`cus\x74o\x6de\x72\x60\n \x20  \t\t,\x20I\x46((\x53\x45\x4cEC\x54 C\x4f\x55NT(\x73\x6f.\x69\x64_order) \x46R\x4fM \x60"._DB_PREFIX_."\x6frde\x72\x73\x60\x20\x73o \x57H\x45R\x45\x20s\x6f\x2ei\x64\x5fcus\x74\x6fm\x65r\x20= \x6f\x2ei\x64_\x63ust\x6fm\x65\x72) >\x20\x31, \x30,\x20\x31)\x20as \x6e\x65w\n\t\t\x20\x20\x20\x20,\x20(\x53E\x4cEC\x54 \x53\x55M(o\x64.\x60\x70\x72o\x64\x75ct\x5f\x71u\x61n\x74i\x74\x79\x60) \x46\x52O\x4d\x20`"._DB_PREFIX_."\x6fr\x64\x65r\x5f\x64\x65t\x61\x69l\x60\x20\x6fd\x20\x57HER\x45\x20o\x64.\x60i\x64\x5f\x6f\x72de\x72\x60\x20= \x6f.`\x69d_o\x72\x64\x65r\x60) nb\x5fpr\x6fd\x75\x63\x74\x73\n\t\t";${"GLOBA\x4c\x53"}["\x76v\x76\x70\x64\x67\x68\x65\x77g\x62\x70"]="\x6c\x69\x6d\x69\x74";${"\x47LO\x42A\x4c\x53"}["\x63\x6f\x73\x67ix\x65\x69w\x76ec"]="\x72e\x73";${${"\x47L\x4f\x42\x41LS"}["\x7ajgb\x71\x65\x62ju"]}="\n\t\t\x46R\x4f\x4d\x20`"._DB_PREFIX_."o\x72der\x73` o\n\t\t\x20 \x20 LE\x46\x54\x20\x4a\x4fI\x4e\x20\x60"._DB_PREFIX_."\x63\x75stom\x65\x72` \x63\x20\x4f\x4e (o\x2e\x69\x64\x5f\x63\x75s\x74om\x65\x72=\x63.\x69d_c\x75\x73\x74omer)\x20\n\t\t\x20 \x20 LE\x46\x54\x20\x4a\x4f\x49\x4e\x20\x60"._DB_PREFIX_."ord\x65r\x5fo\x77n\x65r`\x20o\x6f \x4fN\x20(\x6f\x2e\x69d_ord\x65\x72=o\x6f\x2e\x69\x64_o\x72\x64er)\x20\n\t\t";${$fysfory}="\n \x20\x20 \t\t\x57\x48ERE\x20\x6f\x6f\x2e`\x69\x64\x5fown\x65\x72`\x20= ".(int)${$bajfobacwh}."\n   \x20\t";${"\x47\x4cO\x42A\x4c\x53"}["\x65\x78wl\x6d\x71dk\x73\x72u\x62"]="\x73\x71\x6c";${$slgbomyqru}="SELE\x43\x54 \x43\x4f\x55\x4eT(*)\x20".${${"\x47\x4cOB\x41\x4c\x53"}["\x64u\x64qts"]}.${$lkoosgxquwx};if(${${"\x47\x4cO\x42\x41\x4c\x53"}["nl\x63i\x6fe\x78"]})return Db::getInstance()->getValue(${${"GLO\x42A\x4c\x53"}["\x65g\x66\x7a\x73\x76"]});${"\x47LO\x42A\x4cS"}["kr\x6b\x77\x6f\x7a"]="\x6f\x72d\x65r\x62y";if(${$orhubtgrttj}<1)${${"\x47L\x4fBA\x4c\x53"}["\x74\x73\x73yew"]}=1;if(${$zbmfrvq}<1)${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6fg\x61\x77\x7ai\x64xn\x72"]}=10;if(empty(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65\x6f\x73\x66\x6d\x71\x6e\x6d\x6d\x72"]}))${$wrtfurtrxkj}="\x6f.\x64\x61t\x65_a\x64\x64";$hkbyrhanp="o\x72de\x72\x77\x61\x79";${"\x47\x4c\x4fB\x41L\x53"}["\x68b\x6fk\x77ua\x61"]="\x6e";if(empty(${${"\x47\x4c\x4fBALS"}["xu\x6c\x6e\x67\x78\x79ce\x69\x75\x67"]}))${${"\x47\x4c\x4f\x42\x41L\x53"}["xu\x6c\x6e\x67\x78\x79c\x65i\x75\x67"]}="\x44\x45\x53\x43";${"G\x4c\x4fB\x41\x4cS"}["qdji\x6a\x76\x6c\x72\x63"]="\x6e";${${"GLOBA\x4c\x53"}["sk\x72\x6eqj\x78\x71\x66\x77"]}="\x4fRD\x45R BY\x20".${${"G\x4c\x4f\x42\x41\x4c\x53"}["k\x72\x6bwo\x7a"]}." ".${$hkbyrhanp}."\x20\n \x20\x20  \x20 \x20";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["er\x78m\x66\x77\x65\x75"]}="L\x49\x4d\x49\x54\x20".(((int)(${${"GL\x4f\x42\x41\x4c\x53"}["\x74s\x73\x79\x65\x77"]})-1)*(int)(${${"\x47L\x4f\x42A\x4c\x53"}["\x68b\x6fkwua\x61"]})).",".(int)(${${"\x47LOB\x41LS"}["\x71\x64ji\x6a\x76l\x72c"]})."\n\t\t";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x78\x77\x6c\x6d\x71\x64\x6b\x73rub"]}=${${"\x47\x4cO\x42\x41\x4cS"}["\x74j\x62\x62\x6e\x67\x78"]}.${${"\x47\x4c\x4fB\x41\x4cS"}["d\x75d\x71\x74s"]}.${$uaifmrosr}.${${"\x47\x4cO\x42A\x4c\x53"}["\x73\x6b\x72\x6eq\x6a\x78q\x66\x77"]}.${${"\x47L\x4f\x42A\x4c\x53"}["vv\x76p\x64\x67h\x65\x77g\x62\x70"]};${${"\x47L\x4fB\x41\x4c\x53"}["\x63\x6f\x73\x67\x69xei\x77\x76\x65\x63"]}=Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(${$tmfwttwxrrk});if(!${${"\x47\x4c\x4f\x42ALS"}["e\x72\x6d\x78\x6c\x62jof\x6a\x79\x61"]})return array();foreach(${${"\x47\x4cO\x42A\x4cS"}["jr\x6d\x6c\x6bt\x78\x62\x69"]} as${${"GL\x4f\x42\x41\x4cS"}["\x6dx\x65t\x6crb\x71"]}=>${${"\x47L\x4fB\x41\x4cS"}["jft\x6b\x6df\x78l"]}){${"\x47LOBALS"}["r\x71\x76dpnb\x75\x62o"]="\x73\x71l";${"\x47LO\x42\x41\x4cS"}["\x75e\x72\x6ej\x6c\x77"]="\x6b\x65\x79";$yqnlofzy="\x73h\x6f\x77\x48\x69d\x64en\x53\x74atus";$icdejuy="\x73q\x6c";${"\x47L\x4f\x42\x41\x4c\x53"}["\x64\x77\x67q\x78\x69\x62u\x65\x68pj"]="re\x73\x32";${"\x47\x4cOBA\x4c\x53"}["\x67t\x75\x6ax\x78"]="\x6be\x79";${${"\x47\x4cOB\x41\x4cS"}["\x72\x71\x76\x64\x70\x6e\x62u\x62\x6f"]}="\n\t\t\t\t\x53\x45\x4cEC\x54 os.`i\x64\x5fo\x72\x64er_\x73t\x61\x74\x65`, \x6fsl.\x60na\x6d\x65`\x20A\x53\x20or\x64\x65\x72\x5f\x73\x74\x61\x74e, \x6fs\x2e\x60\x69nvo\x69ce`\n\t\t\t\t\x46R\x4f\x4d \x60"._DB_PREFIX_."\x6frder_\x68i\x73\x74\x6fry\x60 \x6f\x68\n\t\t\t\t\x4c\x45F\x54\x20\x4a\x4f\x49N \x60"._DB_PREFIX_."or\x64er\x5fstat\x65\x60 \x6fs O\x4e (os.`i\x64_ord\x65r_s\x74a\x74e`\x20\x3d\x20oh\x2e`id\x5fo\x72der_\x73\x74\x61te`)\n\t\t\t\tI\x4eN\x45\x52 J\x4fIN \x60"._DB_PREFIX_."\x6f\x72de\x72\x5f\x73\x74ate\x5flan\x67`\x20\x6f\x73l\x20\x4f\x4e (o\x73.`i\x64_\x6frd\x65r_\x73\x74\x61te\x60 = os\x6c.`id\x5f\x6f\x72d\x65r\x5f\x73\x74\x61\x74e\x60 \x41\x4eD o\x73\x6c.\x60id_\x6c\x61n\x67` =\x20".(int)$context->language->id.")\n\t\t\t\x57H\x45R\x45\x20o\x68\x2e\x60i\x64_o\x72de\x72` = ".(int)(${${"\x47L\x4f\x42\x41\x4cS"}["\x6a\x66\x74\x6b\x6d\x66\x78\x6c"]}["i\x64\x5f\x6f\x72de\x72"]).(!${$yqnlofzy}?" A\x4eD \x6fs.`h\x69\x64den\x60 !\x3d 1":"")."\n\t\t\t\t\x4f\x52D\x45R B\x59\x20\x6f\x68.`dat\x65\x5fa\x64\x64` DES\x43,\x20oh\x2e`\x69\x64_\x6fr\x64\x65\x72\x5fh\x69s\x74\x6fr\x79`\x20\x44E\x53C\n\t\t\t\x4c\x49\x4dIT\x201";${${"\x47\x4c\x4fBA\x4c\x53"}["\x64w\x67\x71x\x69\x62\x75\x65h\x70\x6a"]}=Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(${$icdejuy});if(${${"GL\x4fB\x41\x4cS"}["o\x74\x6b\x65tfa\x7ac\x6fn\x70"]})${${"\x47L\x4f\x42\x41\x4cS"}["\x65rmx\x6c\x62\x6ao\x66\x6a\x79\x61"]}[${${"\x47L\x4f\x42\x41L\x53"}["\x75e\x72n\x6al\x77"]}]=array_merge(${${"\x47\x4c\x4f\x42\x41LS"}["e\x72\x6dxl\x62\x6aof\x6aya"]}[${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x67\x74uj\x78\x78"]}],${${"\x47LO\x42A\x4c\x53"}["o\x74k\x65t\x66\x61\x7a\x63\x6fn\x70"]}[0]);}return${$hlsmpzeaos};}public static function linkCustomerAndSeller($id_seller,$id_customer){$tlkkoobhnsq="\x73\x71l";${"\x47LO\x42\x41\x4c\x53"}["xn\x67\x6e\x68\x6bqdv\x6b"]="\x69\x64\x5fc\x75\x73\x74o\x6d\x65\x72";$txxtlfjt="i\x64_\x73e\x6cl\x65r";if(intval(${${"\x47\x4c\x4fB\x41\x4c\x53"}["r\x76o\x6dzi"]})<=0 OR intval(${${"\x47\x4cOB\x41\x4c\x53"}["hx\x71\x70cqbc\x6e\x66\x6e"]})<=0)return;${${"\x47\x4cOB\x41\x4cS"}["\x65\x67f\x7a\x73\x76"]}="UPD\x41\x54E\x20\x60"._DB_PREFIX_."s\x65ller\x69\x6e\x66o` \x53\x45\x54\x20\x69\x64_\x63\x75s\x74o\x6de\x72\x3d".intval(${${"\x47\x4c\x4fB\x41LS"}["\x78\x6e\x67\x6e\x68k\x71d\x76k"]})." W\x48E\x52\x45\x20id_s\x65l\x6c\x65r\x3d".intval(${$txxtlfjt});Db::getInstance()->Execute(${$tlkkoobhnsq});}public static function getNumOfProducts($id_seller){if(intval(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x78\x71p\x63\x71\x62\x63\x6e\x66n"]})<=0)return 0;${"\x47L\x4f\x42\x41\x4c\x53"}["vf\x6fjs\x76n\x63"]="\x72\x65s\x75lt";$vodxuzd="i\x64\x5f\x73el\x6c\x65\x72";${${"\x47L\x4f\x42\x41\x4c\x53"}["e\x67\x66z\x73\x76"]}="\x53ELE\x43T\x20c\x6f\x75\x6e\x74(`\x69\x64_o\x77\x6e\x65\x72\x60)\x20\x41S n\x75\x6d\x20\x66r\x6fm \x60"._DB_PREFIX_."pro\x64u\x63\x74_\x6f\x77\x6eer\x60 wh\x65r\x65 \x60i\x64\x5f\x6f\x77\x6ee\x72\x60=".intval(${$vodxuzd});${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x6b\x78\x74rj"]}=Db::getInstance()->getRow(${${"\x47\x4c\x4fB\x41L\x53"}["e\x67f\x7a\x73\x76"]});if(isset(${${"GLO\x42\x41\x4c\x53"}["t\x6b\x78\x74\x72\x6a"]}["n\x75\x6d"])AND intval(${${"GLOBA\x4c\x53"}["v\x66o\x6a\x73\x76n\x63"]}["\x6e\x75m"])>0)return intval(${${"G\x4c\x4f\x42\x41L\x53"}["t\x6b\x78\x74\x72j"]}["num"]);return 0;}public static function getNumOfOrders($id_seller){${"GL\x4f\x42\x41\x4c\x53"}["\x77\x6bw\x64\x72\x68a"]="id_\x73\x65\x6c\x6c\x65\x72";if(intval(${${"GL\x4f\x42ALS"}["w\x6bw\x64\x72h\x61"]})<=0)return 0;${"\x47\x4cOB\x41\x4c\x53"}["\x74x\x78\x71fra\x70\x65\x73"]="\x72\x65\x73u\x6ct";${${"\x47\x4cOB\x41\x4c\x53"}["\x65\x67\x66\x7a\x73\x76"]}="\x53E\x4c\x45C\x54 \x63\x6fu\x6et(`i\x64_\x6fw\x6ee\x72`)\x20A\x53 n\x75\x6d \x66r\x6f\x6d `"._DB_PREFIX_."or\x64e\x72_owne\x72\x60 \x77he\x72e\x20\x60\x69\x64_o\x77\x6eer`\x3d".intval(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x68x\x71\x70\x63q\x62\x63\x6ef\x6e"]});${"GLOB\x41\x4cS"}["\x6e\x62\x72jg\x6c\x70\x64"]="\x72\x65s\x75\x6ct";${${"\x47\x4c\x4fB\x41\x4cS"}["txxq\x66r\x61\x70\x65\x73"]}=Db::getInstance()->getRow(${${"\x47\x4cO\x42\x41LS"}["egf\x7a\x73\x76"]});if(isset(${${"\x47L\x4f\x42\x41\x4cS"}["t\x6b\x78\x74r\x6a"]}["\x6eu\x6d"])AND intval(${${"GL\x4f\x42A\x4c\x53"}["\x74\x6b\x78\x74r\x6a"]}["\x6e\x75\x6d"])>0)return intval(${${"\x47\x4c\x4f\x42\x41L\x53"}["n\x62\x72\x6a\x67\x6cp\x64"]}["\x6eum"]);return 0;}public static function getAccountBalance($id_seller){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["i\x63\x6f\x68\x73\x62\x73\x6a"]="i\x64_s\x65\x6c\x6c\x65r";$pyiarkbjacu="i\x64\x5f\x73el\x6c\x65r";if(intval(${${"\x47\x4cOBA\x4c\x53"}["ic\x6f\x68\x73\x62s\x6a"]})<=0)return 0;${${"\x47\x4c\x4f\x42AL\x53"}["\x65\x67\x66\x7as\x76"]}="\n\x20 \x20 \x20\x20\x20  \x20\x20 \x53\x45L\x45\x43T\x20ba\x6c\x61nce \n\x20   \x20 \x20\x20\x20\x20\x20 F\x52\x4f\x4d\x20\x20`"._DB_PREFIX_."sell\x65\x72\x5f\x63\x6f\x6d\x6dission\x60 \n\x20\x20  \x20  \x20    W\x48\x45R\x45 i\x64_\x73el\x6c\x65\x72\x20=".${$pyiarkbjacu}."\n\x20\x20\x20\x20\x20\x20  \x20 \x20\x20O\x52\x44ER B\x59 \x69\x64\x5f\x73el\x6c\x65r_co\x6dmi\x73\x73\x69o\x6e \x44E\x53\x43\n\x20  \x20  \x20\x20 \x20\x20 ";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x65l\x6f\x74\x68e\x6b"]}=Db::getInstance()->getValue(${${"\x47\x4cOB\x41\x4c\x53"}["\x65g\x66\x7a\x73\x76"]});return floatval(${${"\x47\x4c\x4fBA\x4cS"}["\x65\x6c\x6f\x74\x68ek"]});}public static function getTotalAmountSold($id_seller){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x73\x6bn\x65\x77\x74"]="\x72\x65s\x75\x6ct";$gqgsvqd="\x73\x71\x6c";if(intval(${${"G\x4cO\x42\x41\x4c\x53"}["\x68x\x71\x70\x63\x71\x62c\x6efn"]})<=0)return 0;${${"\x47\x4c\x4fB\x41LS"}["eg\x66zs\x76"]}="\n\x20  \x20\x20      \x20\x20 \x20\x20SELE\x43\x54\x20\x53\x55M(\x20(\x70\x72o\x64\x75\x63t_\x71ua\x6e\x74\x69t\x79 \x20- p\x72odu\x63t_\x71\x75an\x74it\x79_refu\x6ede\x64  ) *\x20\n\x20 \x20  \x20\x20 \x20 \x20  \x20 \x20 \x20 \x20\x20\x20\x20\x20\x20   (prod\x75\x63\x74_\x70ric\x65\x20\n\x20\x20\x20\x20\x20\x20\x20 \x20   \x20 \x20    \x20\x20\x20\x20 \x20\x20\x20\x20  - C\x41\x53\x45 W\x48\x45\x4e\x20\x72e\x64\x75\x63ti\x6f\x6e\x5fpe\x72ce\x6e\x74>0\x20\x54H\x45\x4e\x20prod\x75\x63\x74\x5fp\x72\x69ce *\x20red\x75ct\x69\x6fn\x5f\x70\x65\x72\x63en\x74/\x3100\x20\x45LSE r\x65\x64uction_amou\x6e\x74 \x45\x4eD\n\x20\x20\x20\x20\x20      \x20 \x20  \x20  \x20\x20\x20  \x20\x20\x20\x20\x20\x20-\x20p\x72oduc\x74\x5fp\x72ice *\x20grou\x70_red\x75cti\x6f\x6e/10\x30\n\x20  \x20\x20 \x20\x20\x20\x20\x20\x20\x20\x20 \x20\x20 \x20 \x20\x20 \x20\x20\x20\x20 \x20)\n \x20 \x20 \x20\x20 \x20\x20\x20\x20 \x20 \x20    \x20\x20  \x20   - CAS\x45 W\x48\x45N\x20\x49F\x4e\x55L\x4c(d\x69\x73co\x75nt\x5fq\x75\x61\x6e\x74i\x74\x79_a\x70p\x6c\x69\x65d,0) = 1\x20T\x48\x45\x4e\x20\x49\x46N\x55\x4cL(pro\x64\x75\x63\x74_\x71\x75a\x6e\x74ity\x5fd\x69\x73count,\x30)\x20\x45\x4c\x53E \x30 \x45\x4eD\n   \x20  \x20 \x20 \x20  \x20\x20 \x20\x20 \x20\x20 \x20 \x20\x20\x20) AS total\n\x20    \x20\x20\x20 \x20\x20\x20 \x20  F\x52OM\x20`"._DB_PREFIX_."o\x72de\x72_\x64\x65ta\x69\x6c\x60 \x61\n\x20\x20  \x20\x20 \x20\x20\x20 \x20  \x20\x20    \x4cE\x46T J\x4f\x49\x4e\x20`"._DB_PREFIX_."\x6fr\x64\x65\x72_\x6fwn\x65r\x60 \x6f\x6f \x4fN\x20(a.\x69d\x5fo\x72\x64\x65r=\x6f\x6f\x2eid\x5fo\x72der)\n  \x20 \x20\x20 \x20\x20       \x57HER\x45\x20\x6f\x6f\x2e\x69d_\x6fw\x6ee\x72 \x3d  ".intval(${${"\x47\x4cOBAL\x53"}["\x68xq\x70\x63q\x62cn\x66\x6e"]})."\n\x20\x20   \x20\x20 \x20 \x20\x20\x20\x20\x20 ";${${"G\x4c\x4f\x42\x41L\x53"}["m\x73\x6b\x6e\x65w\x74"]}=Db::getInstance()->getRow(${$gqgsvqd});if(isset(${${"G\x4c\x4fB\x41\x4c\x53"}["\x74\x6b\x78t\x72\x6a"]}["t\x6ftal"])AND intval(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x74\x6b\x78\x74r\x6a"]}["\x74\x6f\x74\x61l"])>0)return Tools::ps_round(floatval(${${"G\x4c\x4f\x42\x41\x4cS"}["\x74\x6b\x78\x74r\x6a"]}["total"]),2);return 0;}public static function assign_all_products_under_category($id_category){$mhdpdvjpyqh="i\x64\x5f\x63a\x74e\x67or\x79";$rmgmdn="id\x5f\x63\x61\x74\x65\x67\x6fry";${"\x47L\x4f\x42ALS"}["\x6e\x66\x6d\x63g\x62\x78"]="row\x73";$jdqgieo="\x69d\x5f\x6fwn\x65\x72";if(!intval(${${"G\x4c\x4fB\x41\x4c\x53"}["ya\x70\x67\x79\x79\x66\x66v"]}))return;$kkeydg="l\x69s\x74";${"\x47\x4c\x4f\x42\x41\x4cS"}["h\x65\x73\x62v\x73j\x6b\x6f"]="\x6c\x69\x73\x74";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x66\x63\x72\x62\x74\x65j\x71\x6cw"]}=(int)AgileSellerManager::getObjectOwnerID("\x63ate\x67\x6f\x72\x79",${$mhdpdvjpyqh});if(!${${"G\x4c\x4fB\x41\x4cS"}["\x66\x63rb\x74ej\x71\x6cw"]})return;$eiomkhrgny="\x69n\x73\x65r\x74s";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["p\x71h\x6c\x79\x64\x75\x71r\x6e"]="\x75\x70\x64\x61t\x65\x73";${$kkeydg}=implode(AgileSellerManager::get_all_children(${$rmgmdn}),",");${${"\x47\x4c\x4f\x42A\x4cS"}["e\x67\x66\x7a\x73v"]}="S\x45LE\x43\x54 \x63p\x2eid_p\x72o\x64\x75ct\x20AS\x20i\x64_\x70\x72\x6f\x64\x75\x63t,\x20I\x46\x4eU\x4c\x4c(\x70\x6f.\x69d_owner,-1) A\x53\x20id\x5fo\x77\x6eer\n\t\t\t\tFR\x4f\x4d "._DB_PREFIX_."c\x61te\x67\x6f\x72y_\x70\x72\x6f\x64\x75\x63t\x20cp\n\t\t\t\t\x4cE\x46T JO\x49\x4e "._DB_PREFIX_."\x70rod\x75c\x74\x5fow\x6ee\x72 \x70o on \x63\x70\x2e\x69d_\x70\x72\x6f\x64u\x63\x74 \x3d\x20\x70\x6f.id\x5f\x70r\x6f\x64\x75\x63t\n\t\t\t\tWH\x45\x52E\x20\x63p.id_c\x61\x74e\x67\x6fr\x79 IN (".${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68\x65\x73b\x76s\x6a\x6b\x6f"]}.")\n\t\t\t\t\tA\x4e\x44\x20 I\x46\x4e\x55\x4cL(\x20\x70o\x2eid\x5f\x6f\x77n\x65r\x20, -1\x20) !=\x20".${$jdqgieo}."\n\t\t ";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x66\x6dc\x67\x62x"]}=Db::getInstance()->ExecuteS(${${"GL\x4fBA\x4c\x53"}["\x65\x67\x66\x7a\x73\x76"]});$surqqnqjusur="\x72o\x77\x73";${"\x47L\x4f\x42\x41\x4cS"}["\x70\x63dvo\x73\x69b\x68\x72\x72"]="\x72\x6fw";if(empty(${${"\x47LO\x42\x41\x4c\x53"}["\x6c\x69j\x71\x78\x6f\x71\x77\x66\x77m"]}))return;${$eiomkhrgny}=array();${${"\x47\x4cO\x42\x41\x4c\x53"}["\x70\x71\x68\x6cy\x64uqrn"]}=array();foreach(${$surqqnqjusur} as${${"\x47L\x4f\x42\x41\x4cS"}["\x70\x63\x64\x76\x6fs\x69b\x68\x72r"]}){$dpfvuwfv="u\x70\x64\x61te\x73";${"\x47\x4c\x4f\x42\x41LS"}["\x6e\x76\x6d\x73\x6f\x76\x74ln\x77"]="r\x6f\x77";if(${${"G\x4c\x4f\x42\x41L\x53"}["svi\x6f\x76\x6br"]}["i\x64_owne\x72"]>=0)${$dpfvuwfv}[]=${${"\x47L\x4f\x42\x41L\x53"}["\x6e\x76\x6d\x73ov\x74\x6c\x6e\x77"]}["i\x64_\x70rodu\x63\x74"];else${${"\x47\x4c\x4f\x42\x41LS"}["\x74\x70\x79\x6c\x75\x6a\x79\x6cf"]}[]=${${"G\x4cO\x42\x41\x4c\x53"}["\x73\x76iovk\x72"]}["\x69d_p\x72o\x64u\x63t"];}if(!empty(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x74p\x79\x6c\x75j\x79\x6cf"]})){${${"\x47LOBA\x4c\x53"}["e\x67fz\x73v"]}="\x49\x4eS\x45\x52T IN\x54\x4f\x20"._DB_PREFIX_."p\x72\x6f\x64\x75ct\x5fow\x6ee\x72 (\x69\x64_pro\x64uct,\x69\x64_\x6fwner,date\x5f\x61\x64\x64)\x20V\x41L\x55ES\x20";${${"G\x4cOB\x41\x4c\x53"}["\x71\x6d\x78\x6f\x6dja\x78\x73x\x68"]}=0;${"\x47\x4c\x4f\x42\x41\x4cS"}["r\x6dku\x6af"]="\x69\x64_\x70\x72\x6fduct";${"GLO\x42\x41L\x53"}["zt\x72kw\x78y\x75x\x77\x75"]="\x69nse\x72t\x73";foreach(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x74r\x6bw\x78\x79\x75\x78\x77\x75"]} as${${"\x47\x4cO\x42\x41\x4cS"}["\x72\x6d\x6bujf"]}){${"\x47\x4c\x4f\x42A\x4cS"}["\x77v\x73\x6c\x68\x6f"]="\x69d\x5fow\x6eer";${"\x47\x4cOB\x41\x4c\x53"}["s\x69\x66\x7ar\x6e\x61"]="\x69dx";$etrjhwbn="id\x5f\x70\x72\x6f\x64uc\x74";if(${${"\x47\x4c\x4fBAL\x53"}["\x71\x6d\x78\x6fm\x6aa\x78\x73\x78\x68"]}>0)${${"\x47L\x4f\x42A\x4cS"}["e\x67\x66\x7a\x73v"]}.=",";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65gf\x7a\x73\x76"]}.="(".${$etrjhwbn}.",".${${"G\x4c\x4f\x42\x41L\x53"}["wvs\x6c\x68\x6f"]}.",NOW())";${${"GLO\x42A\x4cS"}["\x73\x69\x66\x7ar\x6e\x61"]}++;}Db::getInstance()->Execute(${${"G\x4c\x4fBA\x4cS"}["\x65\x67fzsv"]});}if(!empty(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6cq\x71\x77i\x62\x68\x6ezh"]})){${"GLOBAL\x53"}["r\x72\x70\x6d\x72\x72\x79y"]="\x73q\x6c";${"\x47\x4cO\x42A\x4cS"}["\x6c\x6cf\x6f\x65\x6fl"]="sq\x6c";${${"\x47\x4c\x4fB\x41\x4c\x53"}["rr\x70m\x72ry\x79"]}="\x55P\x44\x41T\x45 "._DB_PREFIX_."pro\x64\x75c\x74_\x6f\x77ner \x53\x45T\x20i\x64\x5f\x6f\x77\x6e\x65r\x20= ".${${"G\x4cO\x42\x41\x4cS"}["fc\x72\x62\x74\x65\x6aq\x6cw"]}."\x20\x57\x48\x45\x52E i\x64\x5f\x70ro\x64u\x63t \x49\x4e (".implode(${${"\x47\x4c\x4fB\x41\x4cS"}["\x6cq\x71wi\x62hn\x7ah"]},",").")";Db::getInstance()->Execute(${${"G\x4c\x4fB\x41\x4c\x53"}["\x6cl\x66o\x65\x6f\x6c"]});}}public static function get_all_children($id_category){$hmhivasjlj="\x69\x64_\x63a\x74\x65g\x6f\x72y";${"\x47\x4cOBAL\x53"}["xh\x79\x6c\x77\x6bl\x78\x7a\x78\x65"]="l\x69st";$vjbiwwarh="\x72\x65\x63\x73";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6c\x62\x67\x74\x76\x6a\x79\x61\x72\x69\x71"]="id_\x63a\x74\x65\x67\x6fr\x79";${"GL\x4f\x42\x41\x4cS"}["\x73\x69\x62\x77j\x70\x68tn"]="r\x65c";$tgbsydh="\x72\x65cs";$gwvirbrk="s\x71\x6c";${${"\x47\x4c\x4fB\x41\x4cS"}["\x78\x68y\x6c\x77k\x6cxz\x78e"]}=array();if(!intval(${$hmhivasjlj}))return${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x62\x66\x65\x76\x6e\x78x\x64\x78"]};${${"GL\x4f\x42\x41LS"}["n\x62fe\x76\x6e\x78\x78d\x78"]}[]=intval(${${"\x47\x4cOB\x41\x4c\x53"}["\x79\x61\x70\x67y\x79\x66f\x76"]});${${"G\x4cO\x42\x41\x4cS"}["\x65gfz\x73v"]}="S\x45\x4c\x45C\x54 i\x64\x5f\x63at\x65\x67o\x72\x79\x20F\x52\x4f\x4d "._DB_PREFIX_."\x63a\x74\x65\x67\x6f\x72y\x20\x77h\x65r\x65\x20\x69\x64_\x70\x61ren\x74=".${${"G\x4cO\x42A\x4cS"}["\x6c\x62\x67t\x76\x6a\x79\x61r\x69\x71"]};${$vjbiwwarh}=Db::getInstance()->ExecuteS(${$gwvirbrk});if(empty(${$tgbsydh}))return${${"\x47\x4c\x4f\x42\x41LS"}["n\x62\x66\x65\x76n\x78xd\x78"]};foreach(${${"\x47\x4c\x4f\x42\x41LS"}["y\x6d\x64\x66k\x63x"]} as${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["s\x69\x62wj\x70\x68\x74n"]}){${"G\x4c\x4f\x42\x41\x4cS"}["\x6f\x73\x74\x78\x68\x66f"]="\x6c\x69st";$llqilkbb="l\x69\x73\x74";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fs\x74\x78\x68ff"]}=array_merge(${$llqilkbb},AgileSellerManager::get_all_children(${${"\x47L\x4f\x42AL\x53"}["\x72\x76\x71\x6ee\x74\x75"]}["id_ca\x74e\x67or\x79"]));}return${${"G\x4c\x4f\x42A\x4c\x53"}["n\x62\x66ev\x6e\x78\x78dx"]};}public static function get_order_id_from_maildata($templateVars){${"\x47L\x4f\x42\x41LS"}["\x75bdm\x77\x6c\x6b\x75"]="tem\x70\x6c\x61\x74\x65\x56a\x72s";$hdvcrlvajyu="\x74\x65mp\x6ca\x74eVa\x72\x73";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x78g\x78\x64l"]="\x69\x64\x5f\x6f\x72d\x65\x72";$qqsnepntdro="\x69\x64\x5f\x6fr\x64\x65\x72";if(_PS_VERSION_>"\x31\x2e5")${$qqsnepntdro}=Db::getInstance()->getValue("S\x45\x4cECT\x20id_\x6f\x72d\x65\x72\x20\x46\x52\x4fM "._DB_PREFIX_."\x6frders\x20W\x48ERE r\x65\x66e\x72en\x63e=\x27".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75\x62\x64\x6d\x77\x6c\x6b\x75"]}["{ord\x65\x72\x5f\x6e\x61me}"]."'");else${${"\x47\x4c\x4f\x42\x41L\x53"}["\x71\x78\x67\x78\x64\x6c"]}=str_replace("\x23","",${$hdvcrlvajyu}["{ord\x65\x72\x5fn\x61m\x65}"]);return intval(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6cng\x73\x65\x66\x64gc\x79\x76"]});}public static function adjust_shipping_cost_carriers($templateVars){$tttjxff="\x74\x65m\x70\x6cat\x65\x56\x61\x72\x73";${"\x47\x4c\x4f\x42\x41L\x53"}["q\x63db\x6c\x70\x69\x6dek\x7a"]="pr\x6f\x64\x75c\x74\x73";${"\x47L\x4f\x42\x41L\x53"}["sy\x70\x71\x63\x6fo\x6a\x77qb\x6d"]="\x73\x68\x69\x70p\x69\x6e\x67\x5ft\x6f\x74a\x6c\x5f\x6e\x74";${"G\x4c\x4fB\x41L\x53"}["\x61\x78h\x63\x67\x64\x75"]="\x69\x64\x5fc\x61\x72ri\x65\x72";if(_PS_VERSION_<"\x31\x2e5")return;$oihlugxtloj="s\x68\x69\x70\x70\x69\x6e\x67_t\x6ft\x61l\x5fw\x74";$uqqrjlf="\x69\x64\x5f\x6f\x72d\x65r";${"\x47\x4cO\x42\x41\x4cS"}["jv\x78\x76\x6c\x69\x78\x64"]="\x70\x72o\x64\x75\x63\x74\x73";if(!Module::isInstalled("a\x67\x69\x6c\x65seller\x73\x68ippi\x6e\x67"))return;$ohsagupgx="\x69\x64_s\x65\x6c\x6c\x65\x72";${"G\x4cOB\x41\x4c\x53"}["\x62\x68\x69\x73\x68\x6d\x73"]="\x6f\x72\x64\x65r";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6cn\x67\x73\x65\x66d\x67\x63y\x76"]}=AgileSellerManager::get_order_id_from_maildata(${$tttjxff});if(!intval(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["l\x6eg\x73\x65f\x64\x67c\x79v"]}))return;$jcungwe="i\x64\x5f\x6f\x72\x64\x65r";include_once(_PS_ROOT_DIR_."/m\x6fdul\x65s/\x61\x67i\x6c\x65s\x65l\x6ce\x72\x73\x68\x69\x70pi\x6eg/\x61\x67\x69l\x65\x73e\x6c\x6c\x65\x72sh\x69pp\x69n\x67.php");${${"G\x4cO\x42ALS"}["pfgpj\x6e\x65\x79t\x79u"]}=new Order(${$jcungwe});$tkbgggwl="s\x68\x69\x70\x70\x69\x6e\x67_\x74o\x74\x61\x6c\x5f\x77\x74";$vhcrpcvqit="id\x5f\x73\x65l\x6c\x65\x72";if(!Validate::isLoadedObject(${${"G\x4cOBAL\x53"}["bh\x69\x73h\x6d\x73"]}))return;${"\x47L\x4f\x42A\x4cS"}["s\x6d\x62kl\x73tc\x73\x77f"]="o\x72d\x65\x72\x5f\x74\x6f\x74\x61l\x5f\x77t";Db::getInstance()->Execute("\x44EL\x45\x54\x45 \x46\x52\x4fM "._DB_PREFIX_."o\x72\x64er\x5f\x63ar\x72ier \x57\x48E\x52\x45\x20id_o\x72de\x72=".${$uqqrjlf});${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["rt\x77bq\x67\x79\x6em"]}=new Cart($order->id_cart);${"GL\x4fB\x41L\x53"}["\x74\x6b\x64\x79\x62\x73\x66\x74\x75\x79"]="c\x61\x72\x72\x69\x65\x72\x5fa\x6dou\x6e\x74\x73";${"G\x4c\x4fB\x41\x4cS"}["b\x6c\x6b\x68sjs\x6dm\x6fl"]="\x73q\x6c";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x72\x6bm\x66\x6c\x6e\x6eu\x6ay"]}=SellerShipping::getZoneID($theCart->id_address_delivery,$theCart->id_customer);${${"\x47L\x4f\x42A\x4c\x53"}["j\x76\x78v\x6c\x69\x78\x64"]}=$theCart->getProducts();${${"G\x4c\x4fB\x41\x4c\x53"}["\x70ix\x61\x66xc"]}=array();$gnzinpi="or\x64e\x72\x5f\x74o\x74\x61l_w\x74";$vosbrbvcgpy="\x63a\x72\x72\x69\x65\x72\x5f\x70ro\x64\x75\x63\x74\x73";foreach(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x71cd\x62lp\x69\x6de\x6bz"]} as${${"\x47\x4c\x4fB\x41LS"}["t\x73\x73\x79\x65\x77"]}){${${"\x47\x4cO\x42\x41\x4c\x53"}["\x70i\x78a\x66\x78c"]}[${${"G\x4c\x4f\x42\x41\x4cS"}["\x74\x73s\x79\x65\x77"]}["i\x64\x5fpr\x6fduc\x74"]]=${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x74s\x73y\x65\x77"]};}$jqtbretsjh="\x69\x64\x5fo\x72\x64\x65r";${$ohsagupgx}=AgileSellerManager::getObjectOwnerID("\x6fr\x64\x65r",$order->id);${"\x47L\x4f\x42\x41\x4cS"}["\x76q\x65t\x63\x71\x6c\x6amnr"]="c\x61\x72\x72ie\x72\x5f\x61m\x6fu\x6ets";$uiwfriljfc="\x69\x64_s\x65\x6c\x6c\x65\x72";$dwewjkqtyus="\x6frd\x65\x72\x5f\x74\x6ft\x61\x6c\x5fw\x74";if(${$vhcrpcvqit}<=0)${${"GL\x4f\x42\x41\x4cS"}["h\x78\x71p\x63\x71\x62\x63n\x66\x6e"]}=0;${${"G\x4cO\x42A\x4c\x53"}["k\x63\x6c\x7a\x63m\x79\x6c"]}=SellerShipping::get_carrier_products($order->id_cart,${$uiwfriljfc});${"\x47LO\x42A\x4c\x53"}["\x64\x75\x72k\x78\x6c\x68\x75"]="\x73hip\x70\x69n\x67\x5f\x74o\x74\x61\x6c_nt";${${"\x47LO\x42AL\x53"}["t\x6b\x64\x79\x62\x73\x66\x74\x75\x79"]}=$theCart->get_carrier_product_amount(${$vosbrbvcgpy},${${"\x47\x4cO\x42\x41\x4c\x53"}["\x64f\x71h\x64\x72p\x68"]},${${"\x47\x4c\x4fB\x41\x4cS"}["\x70\x69\x78\x61\x66x\x63"]});foreach(${${"\x47LOB\x41\x4c\x53"}["\x76\x71\x65t\x63\x71l\x6amn\x72"]} AS${${"GLOBA\x4cS"}["ax\x68\x63\x67\x64\x75"]}=>${${"G\x4cO\x42AL\x53"}["\x79si\x66\x70\x68\x65\x78\x6bt\x71"]}){$vxpzfko="\x69\x64\x5fc\x61\x72r\x69\x65\x72";$srrqkukxwbx="\x63a\x72r\x69\x65\x72\x5f\x77e\x69\x67h\x74";$lrxucjsdb="\x70ro\x64\x75\x63\x74\x5f\x69\x6ede\x78";${${"\x47\x4c\x4fBA\x4cS"}["\x65\x67\x6b\x72\x71\x6fl\x6e\x62"]}=new Carrier(${${"\x47L\x4f\x42\x41L\x53"}["\x72\x72\x6c\x6e\x65p\x6b"]});$nryjjwd="ca\x72\x72\x69\x65\x72\x5f\x63o\x73t_\x77t";${"GL\x4f\x42\x41\x4cS"}["hb\x6f\x70\x61k\x66\x68\x70c\x73"]="i\x64\x5f\x63a\x72ri\x65\x72";$rnwcdtgpyd="s\x71l";$dvnxtnml="c\x61\x72\x72\x69er\x5f\x70\x72\x6fd\x75\x63\x74\x73";${$srrqkukxwbx}=$theCart->getTotalWeightOfCarrier(${${"GL\x4fBAL\x53"}["\x72\x72\x6c\x6ee\x70\x6b"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68x\x71\x70\x63\x71b\x63\x6efn"]});${"\x47\x4c\x4f\x42\x41L\x53"}["b\x67\x76\x75\x79\x73\x77\x73nu\x66"]="\x63\x61\x72\x72\x69e\x72\x5f\x63\x6f\x73\x74\x5f\x6e\x74";if($theCart->is_all_virtual(${$vxpzfko},${$dvnxtnml},${$lrxucjsdb})){${"\x47\x4cO\x42A\x4c\x53"}["\x78k\x6dj\x75\x6b\x63\x70\x65"]="\x63\x61\x72r\x69\x65r\x5fc\x6f\x73\x74_\x77\x74";${"\x47\x4cO\x42AL\x53"}["\x75a\x66\x75p\x6bv\x77\x6abn"]="c\x61\x72\x72\x69e\x72_c\x6f\x73t\x5fn\x74";${${"\x47\x4cO\x42ALS"}["\x78k\x6dj\x75\x6b\x63\x70\x65"]}=0;${${"G\x4c\x4f\x42A\x4cS"}["u\x61\x66\x75pkvw\x6a\x62n"]}=0;}else{${"\x47\x4cOB\x41\x4c\x53"}["c\x73s\x6b\x63rz\x6a"]="\x63\x61rr\x69\x65\x72\x5f\x77\x65\x69\x67\x68\x74";$ndszhrybx="\x63\x61r\x72\x69\x65\x72_\x77e\x69\x67h\x74";$drmkcvgi="c\x61r\x72\x69e\x72_am\x6f\x75\x6e\x74";${"GL\x4f\x42\x41\x4cS"}["y\x72\x62c\x72d\x69"]="\x69\x64_car\x72\x69e\x72";$bxijfil="\x69\x64\x5f\x7aon\x65";${"\x47L\x4f\x42\x41LS"}["\x76\x77\x64\x78x\x73\x62\x67l"]="\x69\x64\x5f\x7ao\x6e\x65";${${"G\x4c\x4f\x42A\x4c\x53"}["\x66\x6dq\x68\x76xll\x78\x67\x6at"]}=$theCart->getOrderShippingCostPerSellerCarrier(${${"\x47\x4c\x4fB\x41L\x53"}["h\x78q\x70c\x71\x62\x63\x6e\x66\x6e"]},true,${$bxijfil},${${"\x47L\x4f\x42\x41\x4cS"}["\x79\x72\x62\x63r\x64i"]},${$drmkcvgi},${${"G\x4c\x4fBALS"}["c\x73\x73\x6b\x63\x72\x7a\x6a"]});${"\x47L\x4f\x42A\x4cS"}["\x6ess\x74lr\x67\x70\x6f\x6a"]="\x69\x64\x5f\x73el\x6c\x65r";${${"G\x4c\x4fB\x41\x4cS"}["hx\x66kw\x6e\x70u\x64a\x6f"]}=$theCart->getOrderShippingCostPerSellerCarrier(${${"\x47\x4c\x4f\x42\x41L\x53"}["n\x73\x73\x74\x6cr\x67\x70o\x6a"]},true,${${"\x47LO\x42\x41LS"}["v\x77\x64\x78xs\x62\x67l"]},${${"\x47L\x4fB\x41\x4cS"}["rrln\x65p\x6b"]},${${"\x47\x4c\x4f\x42\x41L\x53"}["\x79s\x69\x66p\x68\x65x\x6b\x74q"]},${$ndszhrybx});}${${"G\x4c\x4f\x42\x41LS"}["\x65\x67f\x7a\x73\x76"]}="\x49\x4eSE\x52\x54 INT\x4f "._DB_PREFIX_."order_c\x61\x72rie\x72\x20(id_o\x72\x64er,i\x64_\x63\x61r\x72i\x65\x72,\x69d_\x6f\x72de\x72\x5fi\x6evoic\x65,weigh\x74,\x73\x68ip\x70i\x6e\x67_\x63ost\x5fta\x78_\x65\x78cl,ship\x70\x69\x6eg\x5fc\x6fst_\x74\x61\x78\x5f\x69\x6e\x63\x6c,t\x72a\x63\x6bi\x6eg_\x6eum\x62\x65r,date\x5f\x61\x64d)\x20\x56A\x4c\x55\x45\x53\n\t\t\t\t(".$order->id.",".${${"\x47\x4c\x4f\x42\x41L\x53"}["hb\x6f\x70\x61\x6b\x66\x68p\x63\x73"]}.",".$order->invoice_number.",".${${"\x47LO\x42\x41LS"}["o\x73\x70l\x6efserl\x71"]}.",".${${"\x47\x4cO\x42\x41L\x53"}["b\x67v\x75\x79\x73\x77s\x6e\x75\x66"]}.",".${$nryjjwd}.",'\x27,\x27".date("\x59-\x6d-d\x20\x48:i:\x73")."\x27)\n\t\t\t";Db::getInstance()->Execute(${$rnwcdtgpyd});}${$gnzinpi}=$theCart->getOrderTotal(true);${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71v\x6cj\x76\x71jl"]}=$theCart->getOrderTotal(false);${$tkbgggwl}=$theCart->getOrderTotal(true,Cart::ONLY_SHIPPING);${${"\x47LOB\x41\x4cS"}["\x64\x75r\x6b\x78\x6chu"]}=$theCart->getOrderTotal(false,Cart::ONLY_SHIPPING);${${"G\x4c\x4f\x42\x41\x4c\x53"}["bl\x6bhs\x6a\x73\x6d\x6d\x6f\x6c"]}="U\x50\x44\x41\x54E "._DB_PREFIX_."\x6fr\x64\x65rs\x20\x53ET\x20t\x6ft\x61\x6c_\x73\x68ipp\x69\x6eg=".${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x73\x79\x79e\x73\x69\x6b\x71\x69"]}.",\x74\x6fta\x6c\x5f\x73h\x69\x70\x70\x69\x6eg_\x74\x61x_\x69\x6e\x63l\x3d".${$oihlugxtloj}.",to\x74al\x5fs\x68ipping_t\x61\x78_\x65xc\x6c\x3d".${${"\x47\x4c\x4f\x42\x41\x4cS"}["s\x79p\x71\x63\x6f\x6f\x6awq\x62\x6d"]}.",t\x6f\x74\x61l_p\x61i\x64\x3d".${${"\x47L\x4fBA\x4cS"}["\x73\x6dbk\x6c\x73\x74cs\x77\x66"]}.",to\x74a\x6c\x5fpa\x69\x64\x5fta\x78\x5fex\x63\x6c=".${${"G\x4c\x4f\x42A\x4cS"}["q\x76\x6cj\x76\x71\x6a\x6c"]}.", t\x6f\x74al_\x70\x61\x69d\x5fta\x78_in\x63\x6c=".${$dwewjkqtyus}.",\x20id_\x63\x61\x72\x72\x69er\x3d".intval(Configuration::get("A\x47\x49\x4cE_SS_\x43A\x52R\x49ER\x5fI\x44"))."\x20\x57HER\x45\x20id\x5f\x6f\x72d\x65r=".${$jqtbretsjh};Db::getInstance()->Execute(${${"\x47\x4cOB\x41LS"}["\x65\x67f\x7as\x76"]});if(version_compare(_PS_VERSION_,"\x31.5",">=")){${"GL\x4fB\x41\x4c\x53"}["i\x78\x63\x6eq\x66i\x79\x6d\x6av"]="\x73ql";$weorql="\x69\x64_\x6f\x72\x64e\x72";$xgsuerxruhr="\x6fr\x64\x65\x72\x5f\x74\x6f\x74a\x6c\x5f\x6e\x74";$tcrtrad="\x73\x71\x6c";${$tcrtrad}="\x55\x50D\x41\x54\x45 "._DB_PREFIX_."ord\x65r_i\x6e\x76\x6f\x69\x63e\x20\x53ET \x74\x6f\x74\x61\x6c_s\x68\x69\x70\x70\x69\x6eg\x5ftax_i\x6e\x63\x6c\x3d".${${"\x47\x4cO\x42A\x4cS"}["\x70\x73yy\x65s\x69kqi"]}.",\x74otal\x5f\x73h\x69p\x70\x69ng\x5f\x74ax_\x65x\x63l=".${${"\x47\x4cOBA\x4cS"}["\x7a\x73\x72\x68\x6cg\x73\x63x\x78\x66"]}.",\x74o\x74\x61l\x5fp\x61i\x64_t\x61x\x5f\x65xcl=".${$xgsuerxruhr}.", \x74o\x74\x61l\x5fp\x61id_\x74ax_\x69\x6e\x63\x6c=".${${"G\x4c\x4fBA\x4cS"}["uvzd\x6c\x73\x6fx\x62l"]}." \x57\x48\x45R\x45\x20\x69\x64\x5fo\x72\x64er=".${$weorql};Db::getInstance()->Execute(${${"\x47\x4cO\x42AL\x53"}["\x69\x78cn\x71\x66i\x79\x6dj\x76"]});}}public static function limited_by_membership($id_seller){$guhgog="id\x5f\x73\x65\x6c\x6c\x65\x72";if(intval(${$guhgog})>0 AND Module::isInstalled("a\x67ileme\x6d\x62\x65rs\x68\x69\x70")AND intval(Configuration::get("\x41\x47I\x4cE\x5f\x4dEM\x42\x45RSHIP\x5f\x53ELLE\x52\x5f\x49\x4e\x54E"))>0){$ffvhfakuj="\x6e\x75\x6d";include_once(_PS_ROOT_DIR_."/m\x6fd\x75\x6ces/agi\x6ce\x6d\x75\x6c\x74\x69pl\x65\x73\x65\x6cl\x65r/\x53ell\x65rI\x6efo\x2ephp");${"\x47\x4c\x4fBALS"}["e\x66\x63t\x6e\x6ac\x70"]="\x6d\x65\x6d\x62\x65\x72\x73\x68\x69p\x74\x79\x70e";include_once(_PS_ROOT_DIR_."/\x6d\x6f\x64\x75les/a\x67\x69le\x6d\x65\x6d\x62\x65\x72\x73hip/\x61\x67\x69\x6c\x65m\x65\x6db\x65\x72s\x68i\x70\x2ep\x68p");include_once(_PS_ROOT_DIR_."/mo\x64ul\x65s/a\x67\x69l\x65m\x65mbe\x72\x73hi\x70/\x4dember\x73h\x69\x70Typ\x65.ph\x70");include_once(_PS_ROOT_DIR_."/\x6d\x6f\x64\x75le\x73/ag\x69\x6c\x65members\x68i\x70/Cu\x73\x74ome\x72\x4d\x65mbers\x68\x69\x70.p\x68p");${${"G\x4c\x4f\x42A\x4c\x53"}["\x7a\x66\x75\x75bz\x65b\x64l\x79"]}=new SellerInfo(SellerInfo::getIdBSellerId(${${"\x47L\x4fB\x41\x4c\x53"}["\x68\x78\x71\x70c\x71\x62\x63\x6e\x66\x6e"]}));${${"\x47L\x4fB\x41\x4c\x53"}["\x6deeyy\x66\x76\x61\x65"]}=new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));if(!Validate::isLoadedObject(${${"G\x4cO\x42\x41\x4cS"}["m\x65\x65y\x79\x66\x76\x61\x65"]}))return true;$errhqxfbmtc="i\x64\x5f\x73\x65\x6cl\x65r";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x70\x70\x6a\x72\x6f\x6d\x61mv\x71\x6f"]}=new MembershipType($membership->id_membership_type);if(!Validate::isLoadedObject(${${"\x47\x4cO\x42A\x4c\x53"}["\x65\x66\x63\x74\x6e\x6ac\x70"]}))return true;if(!AgileMembership::isActivated($sellerinfo->id_customer)OR!AgileMembership::isMemberFeePaid($sellerinfo->id_customer))return true;${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["k\x6bhnts"]}=AgileSellerManager::getAcitveProductsListed(${$errhqxfbmtc});if(${$ffvhfakuj}>=intval($membershiptype->listing_max)AND intval($membershiptype->listing_max)>0)return true;return false;}return false;}public static function getCarriersBySellerId($id_seller,$id_lang){$eecjqrkoeg="\x69d\x5f\x73e\x6c\x6c\x65\x72";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["eh\x67\x70\x67\x62\x72\x6e\x69"]="\x69d_\x6c\x61\x6eg";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x65g\x66zs\x76"]}="Se\x6cec\x74 c\x2ei\x64\x5f\x63\x61r\x72\x69\x65r, \x63.\x6e\x61me, c.\x61ct\x69\x76\x65,\x20c\x2ei\x73_\x66ree, \x63\x6c\x2e\x64e\x6cay, \x20I\x46\x4eUL\x4c(co.\x69d_o\x77\x6e\x65r,\x30) \x41\x53 \x69\x64\x5fo\x77\x6ee\x72\x20\n\t\t\t\x66\x72o\x6d "._DB_PREFIX_."\x63\x61\x72ri\x65r\x20\x63\x20\n\t\t\t\ti\x6e\x6eer j\x6fin\x20"._DB_PREFIX_."c\x61\x72\x72ie\x72\x5fo\x77ne\x72\x20\x63o\x20\x6f\x6e c.i\x64\x5f\x63a\x72\x72i\x65r = \x63\x6f.\x69\x64_c\x61\x72r\x69\x65\x72\x20\n\t\t\t\t\x4c\x45F\x54 \x4a\x4f\x49N "._DB_PREFIX_."\x63a\x72\x72ie\x72_la\x6e\x67 \x63\x6c \x4f\x4e (c\x2eid\x5fc\x61r\x72ie\x72 \x3d cl.\x69\x64\x5f\x63a\x72\x72\x69\x65\x72 \x41N\x44 \x63l.\x69\x64_l\x61\x6e\x67\x20= ".(int)${${"\x47LOB\x41\x4c\x53"}["e\x68\x67\x70\x67\x62\x72\x6ei"]}.Shop::addSqlRestrictionOnLang("\x63\x6c").")\n\t\t\tw\x68e\x72e\x20\x63\x2edel\x65\x74ed \x3d 0 \n\t\x20  \x20   \x20\x20\x20\x20 \x20\x20\x20 \x41N\x44\x20I\x46\x4e\x55\x4c\x4c(c\x6f.id\x5fown\x65\x72,\x30) \x49N\x20(0, ".(int)${$eecjqrkoeg}.")\n\t\t\t";return Db::getInstance()->executeS(${${"GL\x4f\x42\x41\x4cS"}["\x65\x67\x66\x7as\x76"]});}public static function getPickupCentersBySellerId($id_seller,$id_lang){${"\x47\x4c\x4f\x42A\x4c\x53"}["\x64\x6c\x77yq\x75\x6fln"]="s\x71\x6c";$vefoowvb="\x69d_\x6c\x61n\x67";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x72rl\x6ee\x70k"]}=(int)Configuration::get("\x41\x47\x49\x4c\x45\x5f\x50I\x43\x4b\x55\x50\x43\x45\x4eTE\x52_C\x41\x52RI\x45R\x5fI\x44");${${"\x47\x4cO\x42A\x4c\x53"}["\x64l\x77\x79\x71\x75oln"]}="Se\x6ce\x63\x74 l.\x69\x64\x5f\x6c\x6fc\x61t\x69on, \x6c\x2eid_c\x61rr\x69e\x72,\x20\x63.\x6e\x61m\x65\x20\x61\x73\x20c\x61rr\x69\x65r,\x6c.\x6coc\x61\x74\x69\x6fn,\x20l.acti\x76e,\x6c\x2e\x61d\x64r\x65s\x73\x31,l.po\x73\x74cod\x65,\x6c.ci\x74y,\x63\x6c.\x6e\x61me \x61s\x20\x63o\x75nt\x72y\x20\n\t\t\tf\x72\x6f\x6d "._DB_PREFIX_."\x6coca\x74\x69\x6fn \x6c\x20"."\x49\x4e\x4e\x45\x52\x20\x4a\x4f\x49N "._DB_PREFIX_."c\x61\x72r\x69e\x72\x20c\x20\x6f\x6e\x20\x63\x2ei\x64_c\x61r\x72ie\x72=l.id\x5f\x63\x61\x72r\x69er\x20"."L\x45FT \x4a\x4fIN "._DB_PREFIX_."co\x75\x6e\x74r\x79\x5fla\x6e\x67\x20\x63\x6c ON\x20(\x6c.id_c\x6f\x75n\x74\x72y\x20\x3d c\x6c.\x69\x64\x5fco\x75\x6e\x74\x72\x79 AND\x20c\x6c.i\x64_\x6cang \x3d ".(int)${$vefoowvb}." )\x20\x57\x48\x45\x52\x45\x20l\x2e\x64e\x6c\x65\x74ed\x20=\x20\x30 \x20\x41\x4e\x44\x20\x6c.id\x5fse\x6cl\x65r\x20= ".(int)${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x78qp\x63\x71b\x63\x6e\x66n"]}."\x20\x41\x4eD\x20\x6c.\x69\x64_c\x61r\x72ie\x72 = ".${${"\x47\x4c\x4f\x42A\x4c\x53"}["rr\x6cne\x70\x6b"]};return Db::getInstance()->executeS(${${"\x47\x4c\x4f\x42\x41LS"}["\x65g\x66zs\x76"]});}public static function getTaxes($id_lang){${"\x47\x4cO\x42AL\x53"}["\x76\x62\x6c\x64\x76\x69"]="\x73\x71\x6c";$dwhjlvbsfnn="\x73q\x6c";$rlhcblwi="\x69\x64_\x6c\x61\x6eg";${$dwhjlvbsfnn}="Se\x6cect\x20*\x20\x66r\x6f\x6d "._DB_PREFIX_."tax_\x6cang\x20w\x68\x65r\x65 \x69\x64_la\x6eg =\x20".${$rlhcblwi};return Db::getInstance()->executeS(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76\x62\x6cd\x76\x69"]});}public static function get_id_seller_for_filter(){$efsfqutiqkq="\x73e\x6cle\x72in\x66o";${"G\x4c\x4fBA\x4c\x53"}["\x67\x62\x63\x72\x67\x77ux\x6ab\x6d"]="p\x72\x6f\x64\x75\x63\x74\x73";global$cookie,$cart;${"G\x4cOB\x41L\x53"}["\x6d\x70\x6d\x67\x76\x74cx\x79\x66"]="p\x61\x67\x65\x6e\x61m\x65";include_once(_PS_ROOT_DIR_."/mo\x64u\x6c\x65s/a\x67i\x6cemul\x74i\x70\x6c\x65\x73e\x6cle\x72/\x53\x65\x6cle\x72\x49\x6ef\x6f.p\x68\x70");${${"GL\x4fB\x41L\x53"}["\x6cm\x6a\x67\x79d\x65\x62z\x69\x65"]}=AgileHelper::getPageName();$avssvrbr="\x70r\x6f\x64\x75\x63\x74\x73";switch(${${"\x47\x4c\x4f\x42\x41L\x53"}["mp\x6dg\x76t\x63\x78yf"]}){case"\x73el\x6c\x65\x72ca\x72r\x69\x65\x72d\x65t\x61i\x6c\x2e\x70h\x70":case"\x73e\x6cler\x63arri\x65r\x72a\x6e\x67e\x73\x2eph\x70":case"\x73\x65\x6c\x6cer\x63a\x72\x72i\x65r\x73\x2ep\x68\x70":${$efsfqutiqkq}=new SellerInfo(SellerInfo::getIdByCustomerId($cookie->id_customer));return$sellerinfo->id_seller;case"\x73el\x6c\x65r\x70\x72od\x75ct\x64etai\x6c\x2ephp":case"\x61\x64\x6d\x69\x6e\x70\x72o\x64u\x63t\x73.\x70hp":if(!Module::isInstalled("a\x67\x69l\x65multi\x70l\x65\x73e\x6c\x6ce\x72"))return 0;if(Module::isInstalled("\x61gile\x73e\x6clers\x68i\x70\x70\x69n\x67")){return AgileSellerManager::getObjectOwnerID("\x70\x72\x6f\x64\x75\x63\x74",(int)Tools::getValue("id\x5f\x70r\x6f\x64uct"));}else{if((int)$cookie->id_employee>0 AND(int)$cookie->profile==(int)Configuration::get("\x41\x47IL\x45_\x4d\x53_PROF\x49L\x45\x5f\x49D"))return(int)$cookie->id_employee;return 0;}break;case"a\x64\x6din\x63arri\x65\x72s.ph\x70":case"\x61\x64m\x69n\x73hi\x70pin\x67\x2e\x70hp":case"\x61dm\x69\x6erang\x65\x70ri\x63\x65.\x70\x68\x70":case"ad\x6din\x72an\x67\x65\x77\x65\x69\x67h\x74\x2eph\x70":if((int)$cookie->id_employee>0 AND(int)$cookie->profile==(int)Configuration::get("A\x47\x49L\x45_\x4d\x53_\x50ROFI\x4cE\x5f\x49\x44"))return(int)$cookie->id_employee;return 0;default:if(Module::isInstalled("agi\x6ce\x73\x65\x6c\x6c\x65rs\x68\x69ppi\x6e\x67"))return 0;if((int)Configuration::get("\x41\x47\x49L\x45\x5f\x4dS\x5fCA\x52T\x5fMO\x44\x45")!=1)return 0;if(!Validate::isLoadedObject(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x6avhw\x72\x67wn"]}))return 0;${${"\x47L\x4f\x42\x41\x4c\x53"}["\x67\x62\x63rgw\x75\x78\x6ab\x6d"]}=$cart->getProducts();if(!sizeof(${${"G\x4c\x4f\x42\x41LS"}["\x64f\x71\x68\x64r\x70h"]}))return 0;${${"G\x4c\x4f\x42\x41\x4cS"}["\x61\x64t\x61\x6etaj\x75"]}=array_shift(${$avssvrbr});return intval(AgileSellerManager::getObjectOwnerID("p\x72\x6fdu\x63t",${${"G\x4c\x4f\x42A\x4c\x53"}["\x61d\x74\x61\x6e\x74aj\x75"]}["\x69\x64\x5f\x70\x72o\x64\x75c\x74"]));}}public static function get_id_seller_for_filter4att(){global$cookie,$cart;$veimmkn="p\x61ge\x6e\x61\x6d\x65";include_once(_PS_ROOT_DIR_."/modul\x65s/\x61\x67i\x6c\x65mul\x74i\x70l\x65s\x65ll\x65\x72/\x53\x65llerI\x6ef\x6f.\x70h\x70");${${"\x47L\x4f\x42\x41LS"}["lm\x6ag\x79\x64e\x62z\x69\x65"]}=AgileHelper::getPageName();switch(${$veimmkn}){case"s\x65ller\x70rod\x75ct\x64etail.p\x68p":${${"\x47\x4c\x4f\x42AL\x53"}["z\x66u\x75\x62\x7a\x65\x62\x64\x6c\x79"]}=new SellerInfo(SellerInfo::getIdByCustomerId($cookie->id_customer));return$sellerinfo->id_seller;case"ad\x6d\x69n\x70\x72\x6fduc\x74\x73.p\x68\x70":if($cookie->profile==(int)Configuration::get("A\x47I\x4cE\x5f\x4d\x53_\x50\x52\x4f\x46I\x4c\x45_\x49D"))return$cookie->id_employee;return 0;default:return 0;}}public static function current_logged_seller_id(){$rsocpghqbetr="co\x6f\x6b\x69e";global$cookie,$cart;if(!isset(${$rsocpghqbetr}))return 0;if($cookie->id_employee>0){if(intval($cookie->profile)==Configuration::get("AGILE_MS_PR\x4f\x46I\x4cE\x5fID"))return intval($cookie->id_employee);else return 0;}else{include_once(_PS_ROOT_DIR_."/mo\x64u\x6c\x65s/ag\x69\x6c\x65\x6d\x75\x6c\x74ipl\x65\x73e\x6c\x6c\x65\x72/Se\x6cl\x65\x72\x49\x6e\x66o.\x70hp");${"G\x4c\x4f\x42A\x4cS"}["\x6c\x6e\x65ldb\x6f\x6e\x79r\x6e"]="\x73e\x6c\x6c\x65rin\x66\x6f";${${"GLO\x42\x41\x4c\x53"}["\x6cne\x6c\x64\x62\x6fn\x79\x72n"]}=new SellerInfo(SellerInfo::getIdByCustomerId(Context::getContext()->customer->id),Context::getContext()->language->id);if(Validate::isLoadedObject(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x7a\x66u\x75\x62zeb\x64l\x79"]}))return$sellerinfo->id_seller;return 0;}}public static function get_current_logged_seller_home_category_id(){if(!Module::isInstalled("a\x67i\x6c\x65\x6dult\x69pl\x65\x73\x65ller"))return 0;require_once(_PS_ROOT_DIR_."/m\x6fd\x75\x6ce\x73/agi\x6cem\x75\x6ct\x69pl\x65\x73e\x6c\x6ce\x72/S\x65\x6c\x6c\x65r\x49\x6e\x66\x6f.php");$nesxefuohr="\x63\x61t\x65\x67o\x72\x79";${${"\x47\x4c\x4fBALS"}["\x68\x78qpcq\x62c\x6e\x66\x6e"]}=AgileSellerManager::current_logged_seller_id();if(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68\x78\x71\x70\x63q\x62\x63\x6e\x66\x6e"]}<=0)return 0;${"\x47L\x4f\x42\x41L\x53"}["\x74\x71\x6c\x6c\x63\x72\x75\x6f"]="c\x61te\x67\x6f\x72\x79";${${"\x47\x4cOB\x41L\x53"}["\x7afu\x75\x62\x7a\x65b\x64l\x79"]}=new SellerInfo(SellerInfo::getIdBSellerId(${${"\x47L\x4fBAL\x53"}["h\x78\x71\x70c\x71\x62\x63\x6ef\x6e"]}));if($sellerinfo->id_category_default<=2)return 0;${$nesxefuohr}=new Category($sellerinfo->id_category_default,Context::getContext()->language->id);if(!Validate::isLoadedObject(${${"\x47L\x4f\x42\x41\x4c\x53"}["tq\x6c\x6c\x63\x72\x75o"]}))return 0;return$sellerinfo->id_category_default;}public static function getXRObjectID($table,$objid){$yosfqykgl="\x78\x72\x5f\x6fb\x6a\x69\x64";${"\x47LO\x42\x41\x4c\x53"}["g\x6b\x72vt\x70\x6c"]="\x65\x61\x63\x63\x65ss";${${"\x47\x4c\x4fB\x41\x4cS"}["\x67\x6b\x72v\x74\x70\x6c"]}=AgileSellerManager::get_entity_access(${${"G\x4c\x4f\x42A\x4c\x53"}["xoo\x70\x63\x64\x67\x69\x67i"]});${$yosfqykgl}=intval(Tools::getValue("\x69\x64\x5f".${${"\x47\x4c\x4f\x42\x41L\x53"}["\x70\x6b\x6df\x69\x6a\x74\x68b"]}["o\x77\x6e\x65r\x5fxr_tab\x6c\x65"]));if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x69\x7a\x75\x68\x70"]}==0){$fwviftmi="xr_\x6f\x62\x6ai\x64";$yqsrttkt="sql";${"\x47L\x4fB\x41L\x53"}["nyq\x6c\x65\x70"]="t\x61\x62l\x65";${$yqsrttkt}="\x53\x45\x4cE\x43\x54\x20\x69d\x5f".${${"\x47\x4c\x4f\x42A\x4cS"}["pkmf\x69jt\x68b"]}["\x6fwner\x5fxr\x5f\x74\x61bl\x65"]." F\x52\x4f\x4d "._DB_PREFIX_.${${"\x47\x4cOB\x41L\x53"}["\x78\x6f\x6fp\x63\x64\x67\x69\x67\x69"]}." W\x48\x45RE \x69\x64_".${${"GL\x4fBAL\x53"}["\x6e\x79q\x6c\x65p"]}."=".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69p\x79n\x77\x67\x6b\x76"]};${$fwviftmi}=Db::getInstance()->getValue(${${"\x47\x4c\x4fB\x41\x4cS"}["\x65\x67\x66z\x73\x76"]});}return${${"\x47L\x4fBALS"}["\x78iz\x75\x68\x70"]};}public static function seller_payment_uses($id_cart,$module){$yopwozaxqhk="\x73\x71\x6c";$uylquumlqd="\x73q\x6c";$tuqtwg="r\x6f\x77";$hhlkbwfyo="modu\x6ce";${$yopwozaxqhk}="SE\x4c\x45\x43T\x20C\x4fU\x4e\x54(*) AS \x6e\x75\x6d,\x20S\x55M(i\x6e_u\x73\x65)\x20\x41\x53 \x69\x6e_use\n\t\t\t\tF\x52\x4fM\n\t\t\t\t(\n\t\t\t\t\t\x53\x45L\x45\x43\x54\x20\x49F\x4e\x55L\x4c(\x70o.i\x64\x5fow\x6e\x65r,0) A\x53\x20\x69d_\x73\x65\x6c\x6c\x65\x72,\x20MAX(CA\x53\x45\x20WH\x45N I\x46N\x55\x4cL(po\x2ei\x64_\x6f\x77ner,\x30)\x20\x3d\x20\x30\x20O\x52\x20\x49\x46N\x55\x4cL(\x61sp.in\x5fus\x65,0)=\x31\x20\x54\x48\x45\x4e\x20\x31 \x45LSE 0 \x45N\x44) \x41S in_use \n\t\t\t\t\t\x46R\x4f\x4d\x20"._DB_PREFIX_."\x63\x61r\x74\x5fp\x72\x6fd\x75ct cp\n\t\t\t\t\t\t\x4c\x45F\x54 JOI\x4e\x20"._DB_PREFIX_."\x70r\x6fdu\x63t\x5fo\x77\x6ee\x72\x20po\x20\x6fn\x20\x63\x70.id\x5f\x70ro\x64u\x63t=\x70o.i\x64_pr\x6f\x64u\x63\x74\n\t\t\t\t\t\tL\x45\x46T J\x4f\x49\x4e\x20"._DB_PREFIX_."\x61gile\x5fs\x65\x6cle\x72_\x70\x61y\x6d\x65nt\x69nfo \x61s\x70\x20\x4fN\x20p\x6f\x2eid_o\x77\x6ee\x72=as\x70.i\x64\x5f\x73\x65\x6c\x6cer\x20\x41\x4e\x44 a\x73p.\x6do\x64ule_\x6e\x61\x6d\x65=\x27".${$hhlkbwfyo}."\x27\n\t\t\t\t\tWHE\x52E \x69\x64_cart\x20\x3d ".${${"\x47\x4c\x4f\x42A\x4c\x53"}["o\x6d\x73\x65\x75\x6dl\x71hr\x6du"]}."\n\t\t\t\t\t\x47R\x4f\x55\x50 \x42Y \x49FN\x55\x4c\x4c(p\x6f.id_\x6fw\x6eer,\x30)\n\t\t\t\t)\x20\x54\t\t\n\t\t\t\t";$pphruvayhud="\x72o\x77";${$tuqtwg}=Db::getInstance()->getRow(${$uylquumlqd});if((int)${${"\x47L\x4f\x42A\x4c\x53"}["sv\x69o\x76\x6br"]}["num"]==(int)${${"\x47\x4c\x4f\x42\x41LS"}["s\x76\x69o\x76\x6br"]}["\x69n_u\x73e"])return 1;if((int)${$pphruvayhud}["nu\x6d"]==0)return 0;else return 2;}public static function getAdditionalSqlForProducts($prefix,$no_special_products=false){${"\x47L\x4f\x42\x41LS"}["\x74k\x73\x66nd\x6c\x7ao\x78w"]="\x77\x68\x65\x72e\x73";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6c\x66i\x75ij\x6c\x67"]="wh\x65r\x65\x73";${"\x47L\x4fB\x41L\x53"}["\x71\x6a\x70\x6dc\x69f\x67j\x62\x63"]="\x6aoin\x73";global$cookie;${${"\x47L\x4fB\x41\x4c\x53"}["q\x6apmci\x66\x67\x6a\x62\x63"]}="";${${"\x47L\x4fBAL\x53"}["\x74\x6bs\x66n\x64l\x7a\x6f\x78\x77"]}="";${${"G\x4c\x4f\x42A\x4cS"}["\x75s\x6b\x63\x6f\x72\x63rt\x6b\x76\x74"]}="";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x63\x79\x62x\x74\x70d"]="\x73\x65\x6cec\x74s";if(Module::isInstalled("\x61\x67i\x6c\x65\x6du\x6ctip\x6ce\x73e\x6cler")){$nbvorjujebk="\x70\x72e\x66\x69\x78";$wfvbncfks="\x73\x65l\x65\x63\x74\x73";${"G\x4c\x4f\x42AL\x53"}["pbg\x6f\x69\x6fw\x77\x77"]="id_\x73\x68op_o\x77\x6e\x65\x72";${"\x47\x4c\x4f\x42AL\x53"}["\x64\x62\x79\x63e\x74\x6f\x71p"]="\x73\x65\x6c\x65\x63\x74\x73";require_once(_PS_ROOT_DIR_."/\x6dod\x75l\x65\x73/agil\x65\x6d\x75\x6c\x74ipl\x65se\x6c\x6ce\x72/a\x67ilem\x75\x6c\x74\x69\x70le\x73e\x6c\x6cer.php");${${"\x47L\x4f\x42\x41\x4c\x53"}["\x78\x6e\x67\x65\x75\x62b\x65"]}=${${"G\x4c\x4fBAL\x53"}["\x78\x6e\x67\x65u\x62\x62\x65"]}."\n       \x20  \x20\x20\x20\x20\x20\x20 \x4cE\x46\x54 J\x4f\x49\x4e \x60"._DB_PREFIX_."p\x72\x6fduc\x74_\x6fwne\x72` a_p\x6f O\x4e\x20".${$nbvorjujebk}.".\x69\x64\x5fpr\x6fd\x75\x63t=\x61_\x70\x6f.\x69\x64\x5f\x70r\x6fd\x75ct\n\x20\x20\x20  \x20  \x20 \x20      \x4c\x45F\x54\x20\x4a\x4f\x49\x4e `"._DB_PREFIX_."\x73\x65\x6c\x6cer\x69\x6efo`\x20\x61\x5f\x73 \x4f\x4e\x20a_p\x6f.id_\x6fw\x6ee\x72\x3da_\x73\x2ei\x64\x5fse\x6c\x6c\x65r\n\x20\x20\x20 \x20 \x20    \x20\x20\x20\x20  L\x45\x46\x54\x20J\x4f\x49\x4e\x20\x60"._DB_PREFIX_."s\x65l\x6ce\x72\x69nf\x6f_la\x6e\x67\x60\x20a_\x73\x6c \x4f\x4e (a_sl.\x69d_\x73e\x6c\x6c\x65\x72\x69\x6efo=\x61_\x73\x2e\x69\x64_\x73\x65\x6c\x6ce\x72i\x6efo \x20\x41\x4eD a\x5f\x73\x6c\x2e\x69d_l\x61n\x67\x3d".intval($cookie->id_lang).")\n\x20\x20    \x20\x20\x20\x20\x20    \x20\x20";$cjdepmeb="\x73p\x65\x63\x69\x61l\x63a\x74e\x67o\x72y\x69ds";${$wfvbncfks}=${${"\x47L\x4fB\x41L\x53"}["\x64b\x79c\x65t\x6f\x71\x70"]}."\n\x20  \x20 \x20\x20\x20\x20\x20\x20   \x20\x20,a\x5fsl\x2eco\x6dp\x61\x6ey\x20a\x73\x20s\x65\x6c\x6cer, a_\x73.\x69\x64_s\x65\x6cl\x65r\n\x20\x20 \x20\x20 \x20 \x20 \x20 ";$scmnwwhh="s\x70e\x63i\x61\x6c\x63\x61te\x67\x6fr\x79\x69d\x73";if(Module::isInstalled("\x61g\x69les\x65\x6c\x6cerp\x72\x6f\x64\x75c\x74\x73")||Module::isInstalled("agi\x6cem\x75\x6c\x74i\x70\x6c\x65s\x68\x6fp"))${${"\x47\x4c\x4f\x42\x41LS"}["\x75sk\x63\x6fr\x63r\x74k\x76\x74"]}=${${"\x47\x4c\x4f\x42\x41L\x53"}["\x75s\x6bc\x6frc\x72\x74k\x76t"]}."\n   \x20   \x20\x20\x20\x20\x20 \x20\x20  \x20\x20 ,1 \x41S\x20\x68\x61\x73\x5fsell\x65rl\x69\x6e\x6b\n \x20 \x20 \x20\x20  \x20    \x20 ";${${"GL\x4fBA\x4cS"}["\x64\x66\x7aa\x72xqb"]}=${${"G\x4cOB\x41L\x53"}["d\x66z\x61rxq\x62"]}.(Shop::${${"GL\x4f\x42\x41LS"}["v\x75\x6fypbr"]}>0?" A\x4eD \x61_s\x2eid\x5f\x73elle\x72=".Shop::${${"G\x4c\x4f\x42\x41\x4c\x53"}["p\x62\x67\x6fiow\x77\x77"]}:"");if(intval(Configuration::get("\x41G\x49\x4cE_\x4d\x53_\x50\x52\x4fD\x55C\x54\x5fAPPR\x4fVA\x4c"))){${"\x47L\x4f\x42\x41L\x53"}["\x65\x64k\x7ax\x73\x63\x61"]="\x77\x68e\x72\x65s";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x64k\x7a\x78\x73c\x61"]}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["d\x66za\x72\x78\x71b"]}." \x41\x4eD\x20(\x49FN\x55LL(\x61\x5fp\x6f.appr\x6fv\x65d,0)\x20= 1 OR I\x46\x4eULL(\x61_\x70o\x2e\x69d_ow\x6e\x65r,\x30)=0) ";}${$scmnwwhh}=AgileMultipleSeller::getSpecialCatrgoryIds();if(!empty(${$cjdepmeb})&&${${"\x47\x4c\x4fB\x41\x4c\x53"}["n\x71\x65r\x6d\x6fk\x71\x66"]}){$kjtkjerrsj="wh\x65\x72\x65s";${${"\x47\x4cO\x42A\x4c\x53"}["d\x66\x7aa\x72\x78\x71\x62"]}=${$kjtkjerrsj}." \x41ND ".${${"\x47L\x4f\x42\x41\x4c\x53"}["\x70\x70\x78rnz\x65\x65\x67q\x72"]}."\x2e\x69d\x5f\x63a\x74\x65g\x6f\x72y_d\x65\x66\x61u\x6c\x74\x20\x4eOT \x49\x4e (".${${"\x47\x4cO\x42\x41\x4cS"}["\x6c\x6d\x78\x63\x62\x7az"]}.")";}}if(Module::isInstalled("a\x67\x69lesel\x6c\x65\x72l\x69\x73to\x70ti\x6f\x6e\x73")){$tmchgounavc="j\x6f\x69\x6e\x73";${"\x47\x4c\x4f\x42A\x4c\x53"}["zrbx\x74\x62\x74\x6c"]="\x73\x65l\x65c\x74\x73";require_once(_PS_ROOT_DIR_."/\x6do\x64ules/a\x67i\x6ce\x73el\x6cerli\x73top\x74io\x6es/a\x67\x69le\x73\x65\x6cl\x65r\x6cis\x74\x6f\x70\x74\x69on\x73.\x70\x68p");${$tmchgounavc}=${${"G\x4cOBALS"}["\x78\x6e\x67\x65u\x62\x62e"]}."\n \x20  \x20 \x20 \x20   \x20\x20\x20\x20LEF\x54 J\x4fIN\x20`"._DB_PREFIX_."se\x6cle\x72_\x6c\x69s\x74o\x70t\x69o\x6e\x60 a_\x73lh\x20\x4fN (".${${"GL\x4fB\x41\x4cS"}["\x70\x70\x78\x72\x6e\x7a\x65eg\x71r"]}."\x2eid_\x70\x72\x6fd\x75\x63t\x20\x3d a_slh.i\x64\x5fpro\x64u\x63t\x20\x41ND\x20a\x5fslh.i\x64_\x6fpt\x69\x6fn = ".AgileSellerListOptions::ASLO_OPTION_HOT.")\n \x20 \x20 \x20\x20  \x20\x20\x20 \x20\x20\x20LE\x46T J\x4f\x49\x4e \x60"._DB_PREFIX_."se\x6c\x6ce\x72_li\x73\x74o\x70tio\x6e`\x20a\x5f\x73\x6ct\x20\x4f\x4e (".${${"\x47\x4cO\x42AL\x53"}["\x70p\x78\x72\x6e\x7ae\x65gq\x72"]}."\x2e\x69\x64\x5fp\x72odu\x63\x74 = \x61\x5fslt.id\x5fpro\x64\x75\x63t AN\x44\x20a_\x73\x6c\x74.\x69d_o\x70\x74\x69\x6fn\x20=\x20".AgileSellerListOptions::ASLO_OPTION_LISTTOP.")\n\x20 \x20\x20\x20  \x20   \x20\x20   LE\x46T\x20JO\x49N\x20\x60"._DB_PREFIX_."\x73e\x6c\x6ce\x72\x5flistop\x74\x69\x6fn` \x61\x5f\x73lb\x20O\x4e\x20(".${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70\x70\x78\x72n\x7ae\x65\x67\x71\x72"]}.".\x69\x64\x5f\x70\x72oduc\x74\x20\x3d\x20a\x5fs\x6c\x62\x2e\x69\x64_pr\x6fd\x75\x63t\x20AN\x44\x20\x61_\x73\x6cb.i\x64\x5f\x6f\x70\x74io\x6e\x20= ".AgileSellerListOptions::ASLO_OPTION_LIST.")\n \x20  \x20\x20 \x20 \x20\x20   \x20\x20";${${"\x47L\x4fB\x41\x4c\x53"}["\x75\x73k\x63o\x72\x63\x72\x74\x6bv\x74"]}=${${"\x47\x4cO\x42\x41L\x53"}["\x7a\x72\x62x\x74\x62\x74\x6c"]}."\n  \x20\x20 \x20 \x20\x20\x20\x20\x20\t\t\t,\x43\x41SE WHE\x4e\x20a\x5fslh.s\x74atu\x73 = ".AgileSellerListOptions::ASLO_STATUS_IN_EFFECT."\x20\x54\x48EN\x20\x31 \x45\x4cSE\x200\x20\x45N\x44 \x41\x53 ishot\n \x20  \x20 \x20\x20 \x20 \x20\t\t\t,C\x41SE\x20W\x48E\x4e\x20a\x5fs\x6ct\x2est\x61t\x75\x73\x20= ".AgileSellerListOptions::ASLO_STATUS_IN_EFFECT."\x20T\x48\x45\x4e\x200-R\x41N\x44() E\x4c\x53E \x30 END\x20\x41\x53\x20\x70\x6f\x73i\x74i\x6fn\x32\n\x20\x20\x20\x20\x20  \x20\x20 \x20\x20  \x20 \x20 \x20 ";${${"\x47\x4c\x4fB\x41\x4c\x53"}["df\x7a\x61r\x78qb"]}=${${"\x47LO\x42A\x4cS"}["\x64\x66z\x61\x72\x78\x71b"]}."\x20\n\x20\x20\x20 \t\t \x20  AN\x44 (a_\x73\x6c\x62\x2es\x74a\x74us = ".AgileSellerListOptions::ASLO_STATUS_IN_EFFECT." OR\x20\x49\x46NU\x4c\x4c(a_\x70o\x2ei\x64_own\x65r,0)\x20= 0)\n\t\t\t\t\n    \x20    \x20    \x20 ";}return array("s\x65le\x63\x74s"=>${${"\x47\x4c\x4fBAL\x53"}["\x63\x79\x62\x78\x74\x70d"]},"jo\x69ns"=>${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x78\x6e\x67eubb\x65"]},"wh\x65\x72es"=>${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6c\x66\x69u\x69j\x6c\x67"]});}public static function prepareSellerRattingInfo($data){if(Module::isInstalled("\x61g\x69le\x73e\x6c\x6cer\x72a\x74ings")){$ehqronatldj="m\x6fdu\x6ce";require_once(_PS_ROOT_DIR_."/modu\x6c\x65\x73/\x61\x67i\x6cesel\x6c\x65\x72\x72\x61t\x69\x6eg\x73/ag\x69l\x65se\x6cl\x65rratin\x67\x73.p\x68\x70");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6efy\x70\x6et\x72"]}=new AgileSellerRatings();if(method_exists(${$ehqronatldj},"ass\x69\x67n\x53\x65\x6c\x6cer\x52a\x74i\x6e\x67Fo\x72Li\x73t"))${${"G\x4c\x4f\x42\x41L\x53"}["\x66ji\x71\x6dx\x6b"]}=$module->assignSellerRatingForList(${${"\x47L\x4fB\x41\x4c\x53"}["\x66\x6a\x69q\x6dx\x6b"]},true);}return${${"\x47\x4c\x4fBAL\x53"}["f\x6a\x69\x71\x6d\x78\x6b"]};}public static function ensure_configuration_record_for_all_shops(){$nwgnbmmwgi="i\x64\x5f\x6da\x69\x6e_\x73\x74o\x72e";$acgbcbqdrp="s\x71l";$lgmyxfwnp="\x73q\x6c";${"G\x4c\x4fB\x41L\x53"}["otw\x71cs\x79\x69\x6a\x74"]="\x72ew\x72\x69\x74t\x69\x6eg_s\x65t\x74\x69\x6eg\x73";$cbvzblbmak="\x69\x64\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x6fr\x65";${$nwgnbmmwgi}=intval(Configuration::get("\x50\x53_\x53\x48OP\x5f\x44\x45\x46\x41U\x4c\x54"));${${"\x47L\x4fB\x41\x4cS"}["o\x74w\x71\x63sy\x69j\x74"]}=intval(Configuration::get("P\x53_R\x45\x57R\x49\x54I\x4eG_\x53\x45TT\x49\x4eGS",null,null,${$cbvzblbmak}));${$lgmyxfwnp}="I\x4e\x53\x45RT\x20INT\x4f\x20"._DB_PREFIX_."\x63on\x66i\x67\x75r\x61\x74\x69\x6f\x6e\x20(\x69d_\x73\x68o\x70_\x67ro\x75p,\x69d\x5f\x73\x68o\x70,name,\x76\x61l\x75e)\n\t\t\t\tS\x45\x4c\x45CT NU\x4cL,\x69d\x5f\x73h\x6fp,'PS_REW\x52I\x54IN\x47_S\x45\x54T\x49\x4eGS', $rewritting_settings\n\t\t\t\tF\x52\x4fM\n\t\t\t\t(\n\t\t\t\t\t\x53\x45\x4c\x45CT\x20s\x2e\x69\x64_\x73\x68o\x70 a\x73 \x69d_\x73\x68\x6fp,\x20\x4dAX(\x49F\x4e\x55\x4cL(c.\x69\x64_c\x6fnfigur\x61tion,0))\x20\x41\x53 id\x5fco\x6ef\x69gurati\x6f\x6e\n\t\t\t\t\tFR\x4f\x4d\x20`"._DB_PREFIX_."\x73\x68\x6fp` \x73\n\t\t\t\t\tLE\x46\x54 \x4aOI\x4e\x20"._DB_PREFIX_."\x63onfi\x67\x75r\x61\x74ion c \x4fN s\x2eid\x5f\x73\x68\x6fp\x3dc\x2e\x69d_s\x68o\x70\x20AND c.\x6e\x61\x6de=\x27P\x53\x5f\x52\x45WR\x49TIN\x47\x5f\x53E\x54\x54\x49NG\x53'\n\t\t\t\t\t\x47\x52\x4fU\x70 \x42\x59\x20s.\x69d\x5fs\x68op\n\t\t\t\t)\x41\x53 \x54\n\t\t\t\t\x57HE\x52E \x69d_\x63\x6fnfi\x67\x75\x72\x61t\x69on =0\n\t\t";Db::getInstance()->Execute(${${"G\x4c\x4f\x42A\x4cS"}["e\x67\x66z\x73\x76"]});${${"GL\x4fB\x41\x4c\x53"}["e\x67\x66\x7as\x76"]}="U\x50\x44A\x54E\x20"._DB_PREFIX_."confi\x67u\x72\x61\x74\x69\x6fn SET \x76\x61\x6cu\x65\x3d$rewritting_settings \x57\x48\x45\x52E\x20nam\x65\x3d\x27\x50S\x5fR\x45\x57\x52ITING_\x53E\x54\x54I\x4eGS\x27 A\x4e\x44\x20i\x64\x5fs\x68\x6fp\x3e\x30 \x41ND \x76\x61\x6c\x75\x65!\x3d$rewritting_settings";Db::getInstance()->Execute(${$acgbcbqdrp});}public static function syncSellerCredentials($dir,$id_seller){$wjofpab="\x64\x69\x72";$cmiurhvvy="\x69\x64_cus\x74o\x6d\x65\x72";if(!${${"GL\x4f\x42A\x4c\x53"}["\x68\x78\x71\x70\x63qb\x63\x6ef\x6e"]})return;${"\x47LO\x42A\x4c\x53"}["k\x70\x6b\x76\x75\x77"]="i\x64\x5f\x73elle\x72";${$cmiurhvvy}=(int)Db::getInstance()->getValue("\x53EL\x45\x43\x54 \x69\x64_c\x75\x73\x74o\x6de\x72\x20F\x52\x4f\x4d\x20"._DB_PREFIX_."s\x65\x6c\x6ceri\x6e\x66\x6f \x57HE\x52\x45\x20\x69\x64_se\x6c\x6cer\x3d".(int)${${"GLO\x42A\x4c\x53"}["\x6b\x70\x6b\x76u\x77"]});if(!${${"\x47L\x4f\x42\x41\x4c\x53"}["r\x76\x6f\x6d\x7a\x69"]})return;if(${${"G\x4c\x4fB\x41\x4c\x53"}["\x74\x74pn\x6d\x71\x7af"]}=="f2\x62"){${"GL\x4f\x42A\x4c\x53"}["o\x6c\x79\x62\x66\x73\x7a\x62\x67\x64\x6e"]="\x65\x6e\x63\x72\x79\x70ted";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6d\x78e\x6b\x6a\x66\x74y\x72"]}=Db::getInstance()->getValue("\x53\x45\x4cEC\x54 \x70a\x73swd F\x52OM\x20"._DB_PREFIX_."\x63u\x73\x74\x6f\x6de\x72 \x57\x48\x45RE\x20\x69d\x5f\x63u\x73\x74\x6f\x6de\x72=".(int)${${"\x47\x4cO\x42\x41LS"}["\x72\x76\x6f\x6dzi"]});$nfjuptufts="s\x71l";${${"GL\x4f\x42\x41\x4c\x53"}["\x65gf\x7as\x76"]}="UPDA\x54\x45\x20"._DB_PREFIX_."em\x70l\x6fy\x65e\x20\x53E\x54\x20\x70\x61\x73s\x77\x64\x3d'".${${"\x47\x4cOB\x41\x4c\x53"}["\x6f\x6cyb\x66\x73zbgd\x6e"]}."\x27\x20\x57\x48ERE\x20i\x64_em\x70loy\x65e\x3d".(int)${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x68xq\x70\x63\x71\x62c\x6e\x66\x6e"]};Db::getInstance()->Execute(${$nfjuptufts});}if(${$wjofpab}=="\x62\x32f"){$fbnnnfd="sq\x6c";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75\x71\x6b\x6d\x75o\x6c\x63z\x6e\x72"]="\x73\x71\x6c";$wbpofmi="\x65\x6e\x63\x72\x79pte\x64";${$wbpofmi}=Db::getInstance()->getValue("\x53E\x4c\x45CT\x20p\x61ssw\x64 \x46\x52O\x4d "._DB_PREFIX_."emp\x6c\x6f\x79\x65\x65\x20\x57H\x45RE\x20\x69d_\x65\x6dpl\x6fy\x65e\x3d".(int)${${"\x47\x4c\x4f\x42AL\x53"}["\x68\x78\x71\x70\x63q\x62\x63\x6e\x66\x6e"]});${$fbnnnfd}="\x55\x50\x44AT\x45\x20"._DB_PREFIX_."cus\x74o\x6de\x72\x20SET\x20\x70asswd\x3d'".${${"G\x4cOBA\x4c\x53"}["\x79\x6dx\x65\x6b\x6a\x66t\x79\x72"]}."' \x57\x48E\x52E\x20id_\x63\x75\x73to\x6d\x65\x72=".(int)${${"GLOBALS"}["rv\x6fm\x7a\x69"]};Db::getInstance()->Execute(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75q\x6b\x6d\x75\x6f\x6cc\x7a\x6e\x72"]});}}}
?>